mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
feat: add gemini-3-flash-preview model (#10151)
This commit is contained in:
parent
970deead5b
commit
cc3bc35091
2 changed files with 33 additions and 1 deletions
|
|
@ -3,7 +3,7 @@ import type { ModelInfo } from "../model.js"
|
|||
// https://ai.google.dev/gemini-api/docs/models/gemini
|
||||
export type GeminiModelId = keyof typeof geminiModels
|
||||
|
||||
export const geminiDefaultModelId: GeminiModelId = "gemini-2.5-pro"
|
||||
export const geminiDefaultModelId: GeminiModelId = "gemini-3-pro-preview"
|
||||
|
||||
export const geminiModels = {
|
||||
"gemini-3-pro-preview": {
|
||||
|
|
@ -32,6 +32,22 @@ export const geminiModels = {
|
|||
},
|
||||
],
|
||||
},
|
||||
"gemini-3-flash-preview": {
|
||||
maxTokens: 65_536,
|
||||
contextWindow: 1_048_576,
|
||||
supportsImages: true,
|
||||
supportsNativeTools: true,
|
||||
defaultToolProtocol: "native",
|
||||
supportsPromptCache: true,
|
||||
supportsReasoningEffort: ["minimal", "low", "medium", "high"],
|
||||
reasoningEffort: "medium",
|
||||
supportsTemperature: true,
|
||||
defaultTemperature: 1,
|
||||
inputPrice: 0.3,
|
||||
outputPrice: 2.5,
|
||||
cacheReadsPrice: 0.075,
|
||||
cacheWritesPrice: 1.0,
|
||||
},
|
||||
// 2.5 Pro models
|
||||
"gemini-2.5-pro": {
|
||||
maxTokens: 64_000,
|
||||
|
|
|
|||
|
|
@ -32,6 +32,22 @@ export const vertexModels = {
|
|||
},
|
||||
],
|
||||
},
|
||||
"gemini-3-flash-preview": {
|
||||
maxTokens: 65_536,
|
||||
contextWindow: 1_048_576,
|
||||
supportsImages: true,
|
||||
supportsNativeTools: true,
|
||||
defaultToolProtocol: "native",
|
||||
supportsPromptCache: true,
|
||||
supportsReasoningEffort: ["minimal", "low", "medium", "high"],
|
||||
reasoningEffort: "medium",
|
||||
supportsTemperature: true,
|
||||
defaultTemperature: 1,
|
||||
inputPrice: 0.3,
|
||||
outputPrice: 2.5,
|
||||
cacheReadsPrice: 0.075,
|
||||
cacheWritesPrice: 1.0,
|
||||
},
|
||||
"gemini-2.5-flash-preview-05-20:thinking": {
|
||||
maxTokens: 65_535,
|
||||
contextWindow: 1_048_576,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue