Skip to content

Commit 27e47de

Browse files
authored
Add Gemini Flash 2.5 05-20 variants for the Vertex provider (RooCodeInc#3758)
* feat(api): add gemini-2.5-flash-preview-05-20 model configuration * feat(tests): update apiModelId to gemini-2.5-flash-preview-05-20 in ProviderSettingsManager tests in case the old version is deprecated * chore: add changeset * feat(api): update vertexModels to add gemini-2.5-flash-preview-05-20 variants * chore: update changeset
1 parent 5ccce3a commit 27e47de

File tree

3 files changed

+26
-1
lines changed

3 files changed

+26
-1
lines changed

.changeset/clean-taxis-feel.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"roo-cline": patch
3+
---
4+
5+
Add support for `gemini-2.5-flash-preview-05-20` on the Vertex provider
6+
Add support for `gemini-2.5-flash-preview-05-20:thinking` on the Vertex provider

src/core/config/__tests__/ProviderSettingsManager.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ describe("ProviderSettingsManager", () => {
222222

223223
const newConfig: ProviderSettings = {
224224
apiProvider: "vertex",
225-
apiModelId: "gemini-2.5-flash-preview-04-17",
225+
apiModelId: "gemini-2.5-flash-preview-05-20",
226226
vertexKeyFile: "test-key-file",
227227
}
228228

src/shared/api.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,25 @@ export const openRouterDefaultModelInfo: ModelInfo = {
472472
export type VertexModelId = keyof typeof vertexModels
473473
export const vertexDefaultModelId: VertexModelId = "claude-3-7-sonnet@20250219"
474474
export const vertexModels = {
475+
"gemini-2.5-flash-preview-05-20:thinking": {
476+
maxTokens: 65_535,
477+
contextWindow: 1_048_576,
478+
supportsImages: true,
479+
supportsPromptCache: false,
480+
inputPrice: 0.15,
481+
outputPrice: 3.5,
482+
thinking: true,
483+
maxThinkingTokens: 24_576,
484+
},
485+
"gemini-2.5-flash-preview-05-20": {
486+
maxTokens: 65_535,
487+
contextWindow: 1_048_576,
488+
supportsImages: true,
489+
supportsPromptCache: false,
490+
inputPrice: 0.15,
491+
outputPrice: 0.6,
492+
thinking: false,
493+
},
475494
"gemini-2.5-flash-preview-04-17:thinking": {
476495
maxTokens: 65_535,
477496
contextWindow: 1_048_576,

0 commit comments

Comments
 (0)