Skip to content

Commit b5c3ac9

Browse files
committed
feat: add thinking variant for gemini-2.5-pro-preview-06-05
1 parent 6a9f606 commit b5c3ac9

File tree

3 files changed

+40
-1
lines changed

3 files changed

+40
-1
lines changed

packages/types/src/providers/gemini.ts

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,33 @@ export const geminiModels = {
104104
},
105105
],
106106
},
107+
"gemini-2.5-pro-preview-06-05:thinking": {
108+
maxTokens: 65_535,
109+
contextWindow: 1_048_576,
110+
supportsImages: true,
111+
supportsPromptCache: true,
112+
inputPrice: 2.5, // This is the pricing for prompts above 200k tokens.
113+
outputPrice: 3.5, // Thinking models have a different output price
114+
cacheReadsPrice: 0.625,
115+
cacheWritesPrice: 4.5,
116+
maxThinkingTokens: 32_768,
117+
supportsReasoningBudget: true,
118+
requiredReasoningBudget: true,
119+
tiers: [
120+
{
121+
contextWindow: 200_000,
122+
inputPrice: 1.25,
123+
outputPrice: 10,
124+
cacheReadsPrice: 0.31,
125+
},
126+
{
127+
contextWindow: Infinity,
128+
inputPrice: 2.5,
129+
outputPrice: 15,
130+
cacheReadsPrice: 0.625,
131+
},
132+
],
133+
},
107134
"gemini-2.5-pro-preview-06-05": {
108135
maxTokens: 65_535,
109136
contextWindow: 1_048_576,

packages/types/src/providers/vertex.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,17 @@ export const vertexModels = {
6060
inputPrice: 2.5,
6161
outputPrice: 15,
6262
},
63+
"gemini-2.5-pro-preview-06-05:thinking": {
64+
maxTokens: 65_535,
65+
contextWindow: 1_048_576,
66+
supportsImages: true,
67+
supportsPromptCache: true,
68+
inputPrice: 2.5,
69+
outputPrice: 15,
70+
maxThinkingTokens: 32_768,
71+
supportsReasoningBudget: true,
72+
requiredReasoningBudget: true,
73+
},
6374
"gemini-2.5-pro-preview-06-05": {
6475
maxTokens: 65_535,
6576
contextWindow: 1_048_576,

webview-ui/src/components/settings/ModelInfoView.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ export const ModelInfoView = ({
7575
<span className="italic">
7676
{selectedModelId === "gemini-2.5-pro-preview-03-25" ||
7777
selectedModelId === "gemini-2.5-pro-preview-05-06" ||
78-
selectedModelId === "gemini-2.5-pro-preview-06-05"
78+
selectedModelId === "gemini-2.5-pro-preview-06-05" ||
79+
selectedModelId === "gemini-2.5-pro-preview-06-05:thinking"
7980
? t("settings:modelInfo.gemini.billingEstimate")
8081
: t("settings:modelInfo.gemini.freeRequests", {
8182
count: selectedModelId && selectedModelId.includes("flash") ? 15 : 2,

0 commit comments

Comments
 (0)