From 6a9f606b53b7086fe1d8da5729f9e7f1315bdbd5 Mon Sep 17 00:00:00 2001 From: Shariq Riaz Date: Thu, 5 Jun 2025 20:49:16 +0500 Subject: [PATCH 1/2] feat: add gemini-2.5-pro-preview-06-05 to Gemini and Vertex providers and UI, identical to 05-06 --- packages/types/src/providers/gemini.ts | 24 +++++++++++++++++++ packages/types/src/providers/vertex.ts | 8 +++++++ .../src/components/settings/ModelInfoView.tsx | 3 ++- 3 files changed, 34 insertions(+), 1 deletion(-) diff --git a/packages/types/src/providers/gemini.ts b/packages/types/src/providers/gemini.ts index 2ddf594704..09e1eb5077 100644 --- a/packages/types/src/providers/gemini.ts +++ b/packages/types/src/providers/gemini.ts @@ -104,6 +104,30 @@ export const geminiModels = { }, ], }, + "gemini-2.5-pro-preview-06-05": { + maxTokens: 65_535, + contextWindow: 1_048_576, + supportsImages: true, + supportsPromptCache: true, + inputPrice: 2.5, // This is the pricing for prompts above 200k tokens. + outputPrice: 15, + cacheReadsPrice: 0.625, + cacheWritesPrice: 4.5, + tiers: [ + { + contextWindow: 200_000, + inputPrice: 1.25, + outputPrice: 10, + cacheReadsPrice: 0.31, + }, + { + contextWindow: Infinity, + inputPrice: 2.5, + outputPrice: 15, + cacheReadsPrice: 0.625, + }, + ], + }, "gemini-2.0-flash-001": { maxTokens: 8192, contextWindow: 1_048_576, diff --git a/packages/types/src/providers/vertex.ts b/packages/types/src/providers/vertex.ts index 11aa1aaa4a..e0169bc008 100644 --- a/packages/types/src/providers/vertex.ts +++ b/packages/types/src/providers/vertex.ts @@ -60,6 +60,14 @@ export const vertexModels = { inputPrice: 2.5, outputPrice: 15, }, + "gemini-2.5-pro-preview-06-05": { + maxTokens: 65_535, + contextWindow: 1_048_576, + supportsImages: true, + supportsPromptCache: true, + inputPrice: 2.5, + outputPrice: 15, + }, "gemini-2.5-pro-exp-03-25": { maxTokens: 65_535, contextWindow: 1_048_576, diff --git a/webview-ui/src/components/settings/ModelInfoView.tsx b/webview-ui/src/components/settings/ModelInfoView.tsx index d940e66d42..9b3291d303 100644 --- a/webview-ui/src/components/settings/ModelInfoView.tsx +++ b/webview-ui/src/components/settings/ModelInfoView.tsx @@ -74,7 +74,8 @@ export const ModelInfoView = ({ apiProvider === "gemini" && ( {selectedModelId === "gemini-2.5-pro-preview-03-25" || - selectedModelId === "gemini-2.5-pro-preview-05-06" + selectedModelId === "gemini-2.5-pro-preview-05-06" || + selectedModelId === "gemini-2.5-pro-preview-06-05" ? t("settings:modelInfo.gemini.billingEstimate") : t("settings:modelInfo.gemini.freeRequests", { count: selectedModelId && selectedModelId.includes("flash") ? 15 : 2, From b5c3ac980a7c9a0b0cea3798836ea9f2beaa95f7 Mon Sep 17 00:00:00 2001 From: Daniel Riccio Date: Thu, 5 Jun 2025 13:06:51 -0500 Subject: [PATCH 2/2] feat: add thinking variant for gemini-2.5-pro-preview-06-05 --- packages/types/src/providers/gemini.ts | 27 +++++++++++++++++++ packages/types/src/providers/vertex.ts | 11 ++++++++ .../src/components/settings/ModelInfoView.tsx | 3 ++- 3 files changed, 40 insertions(+), 1 deletion(-) diff --git a/packages/types/src/providers/gemini.ts b/packages/types/src/providers/gemini.ts index 09e1eb5077..ea587c9a77 100644 --- a/packages/types/src/providers/gemini.ts +++ b/packages/types/src/providers/gemini.ts @@ -104,6 +104,33 @@ export const geminiModels = { }, ], }, + "gemini-2.5-pro-preview-06-05:thinking": { + maxTokens: 65_535, + contextWindow: 1_048_576, + supportsImages: true, + supportsPromptCache: true, + inputPrice: 2.5, // This is the pricing for prompts above 200k tokens. + outputPrice: 3.5, // Thinking models have a different output price + cacheReadsPrice: 0.625, + cacheWritesPrice: 4.5, + maxThinkingTokens: 32_768, + supportsReasoningBudget: true, + requiredReasoningBudget: true, + tiers: [ + { + contextWindow: 200_000, + inputPrice: 1.25, + outputPrice: 10, + cacheReadsPrice: 0.31, + }, + { + contextWindow: Infinity, + inputPrice: 2.5, + outputPrice: 15, + cacheReadsPrice: 0.625, + }, + ], + }, "gemini-2.5-pro-preview-06-05": { maxTokens: 65_535, contextWindow: 1_048_576, diff --git a/packages/types/src/providers/vertex.ts b/packages/types/src/providers/vertex.ts index e0169bc008..4ddde25866 100644 --- a/packages/types/src/providers/vertex.ts +++ b/packages/types/src/providers/vertex.ts @@ -60,6 +60,17 @@ export const vertexModels = { inputPrice: 2.5, outputPrice: 15, }, + "gemini-2.5-pro-preview-06-05:thinking": { + maxTokens: 65_535, + contextWindow: 1_048_576, + supportsImages: true, + supportsPromptCache: true, + inputPrice: 2.5, + outputPrice: 15, + maxThinkingTokens: 32_768, + supportsReasoningBudget: true, + requiredReasoningBudget: true, + }, "gemini-2.5-pro-preview-06-05": { maxTokens: 65_535, contextWindow: 1_048_576, diff --git a/webview-ui/src/components/settings/ModelInfoView.tsx b/webview-ui/src/components/settings/ModelInfoView.tsx index 9b3291d303..4ea3adf3f6 100644 --- a/webview-ui/src/components/settings/ModelInfoView.tsx +++ b/webview-ui/src/components/settings/ModelInfoView.tsx @@ -75,7 +75,8 @@ export const ModelInfoView = ({ {selectedModelId === "gemini-2.5-pro-preview-03-25" || selectedModelId === "gemini-2.5-pro-preview-05-06" || - selectedModelId === "gemini-2.5-pro-preview-06-05" + selectedModelId === "gemini-2.5-pro-preview-06-05" || + selectedModelId === "gemini-2.5-pro-preview-06-05:thinking" ? t("settings:modelInfo.gemini.billingEstimate") : t("settings:modelInfo.gemini.freeRequests", { count: selectedModelId && selectedModelId.includes("flash") ? 15 : 2,