From eeb73c3c0663d3535d6c1f80ba823770bd9c1f9b Mon Sep 17 00:00:00 2001 From: Nico Bihan Date: Sat, 19 Apr 2025 23:30:20 -0500 Subject: [PATCH] Adds Gemini 2.5 Flash "thinking" model to Vertex AI Provider (#2794) --- src/shared/api.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/shared/api.ts b/src/shared/api.ts index 346268de44..825a95bc76 100644 --- a/src/shared/api.ts +++ b/src/shared/api.ts @@ -477,6 +477,16 @@ 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-04-17: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-04-17": { maxTokens: 65_535, contextWindow: 1_048_576, @@ -484,6 +494,7 @@ export const vertexModels = { supportsPromptCache: false, inputPrice: 0.15, outputPrice: 0.6, + thinking: false, }, "gemini-2.5-pro-preview-03-25": { maxTokens: 65_535,