Skip to content

Commit 6a9f606

Browse files
committed
feat: add gemini-2.5-pro-preview-06-05 to Gemini and Vertex providers and UI, identical to 05-06
1 parent 39f69f2 commit 6a9f606

File tree

3 files changed

+34
-1
lines changed

3 files changed

+34
-1
lines changed

packages/types/src/providers/gemini.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,30 @@ export const geminiModels = {
104104
},
105105
],
106106
},
107+
"gemini-2.5-pro-preview-06-05": {
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: 15,
114+
cacheReadsPrice: 0.625,
115+
cacheWritesPrice: 4.5,
116+
tiers: [
117+
{
118+
contextWindow: 200_000,
119+
inputPrice: 1.25,
120+
outputPrice: 10,
121+
cacheReadsPrice: 0.31,
122+
},
123+
{
124+
contextWindow: Infinity,
125+
inputPrice: 2.5,
126+
outputPrice: 15,
127+
cacheReadsPrice: 0.625,
128+
},
129+
],
130+
},
107131
"gemini-2.0-flash-001": {
108132
maxTokens: 8192,
109133
contextWindow: 1_048_576,

packages/types/src/providers/vertex.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,14 @@ export const vertexModels = {
6060
inputPrice: 2.5,
6161
outputPrice: 15,
6262
},
63+
"gemini-2.5-pro-preview-06-05": {
64+
maxTokens: 65_535,
65+
contextWindow: 1_048_576,
66+
supportsImages: true,
67+
supportsPromptCache: true,
68+
inputPrice: 2.5,
69+
outputPrice: 15,
70+
},
6371
"gemini-2.5-pro-exp-03-25": {
6472
maxTokens: 65_535,
6573
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
@@ -74,7 +74,8 @@ export const ModelInfoView = ({
7474
apiProvider === "gemini" && (
7575
<span className="italic">
7676
{selectedModelId === "gemini-2.5-pro-preview-03-25" ||
77-
selectedModelId === "gemini-2.5-pro-preview-05-06"
77+
selectedModelId === "gemini-2.5-pro-preview-05-06" ||
78+
selectedModelId === "gemini-2.5-pro-preview-06-05"
7879
? t("settings:modelInfo.gemini.billingEstimate")
7980
: t("settings:modelInfo.gemini.freeRequests", {
8081
count: selectedModelId && selectedModelId.includes("flash") ? 15 : 2,

0 commit comments

Comments
 (0)