Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changeset/clean-taxis-feel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"roo-cline": patch
---

Add support for `gemini-2.5-flash-preview-05-20` on the Vertex provider
Add support for `gemini-2.5-flash-preview-05-20:thinking` on the Vertex provider
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ describe("ProviderSettingsManager", () => {

const newConfig: ProviderSettings = {
apiProvider: "vertex",
apiModelId: "gemini-2.5-flash-preview-04-17",
apiModelId: "gemini-2.5-flash-preview-05-20",
vertexKeyFile: "test-key-file",
}

Expand Down
19 changes: 19 additions & 0 deletions src/shared/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,25 @@ export const openRouterDefaultModelInfo: ModelInfo = {
export type VertexModelId = keyof typeof vertexModels
export const vertexDefaultModelId: VertexModelId = "claude-3-7-sonnet@20250219"
export const vertexModels = {
"gemini-2.5-flash-preview-05-20:thinking": {
maxTokens: 65_535,
contextWindow: 1_048_576,
supportsImages: true,
supportsPromptCache: false,
inputPrice: 0.15,
outputPrice: 3.5,
thinking: true,
maxThinkingTokens: 24_576,
},
"gemini-2.5-flash-preview-05-20": {
maxTokens: 65_535,
contextWindow: 1_048_576,
supportsImages: true,
supportsPromptCache: false,
inputPrice: 0.15,
outputPrice: 0.6,
thinking: false,
},
"gemini-2.5-flash-preview-04-17:thinking": {
maxTokens: 65_535,
contextWindow: 1_048_576,
Expand Down
Loading