Skip to content

Commit 98f90a9

Browse files
committed
Add model gemini-2.5-pro-preview-05-06
1 parent 2e2c0a8 commit 98f90a9

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed

src/shared/api.ts

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,15 @@ export const vertexModels = {
502502
inputPrice: 2.5,
503503
outputPrice: 15,
504504
},
505+
"gemini-2.5-pro-preview-05-06": {
506+
maxTokens: 65_535,
507+
contextWindow: 1_048_576,
508+
supportsImages: true,
509+
supportsPromptCache: true,
510+
isPromptCacheOptional: true,
511+
inputPrice: 2.5,
512+
outputPrice: 15,
513+
},
505514
"gemini-2.5-pro-exp-03-25": {
506515
maxTokens: 65_535,
507516
contextWindow: 1_048_576,
@@ -703,6 +712,31 @@ export const geminiModels = {
703712
},
704713
],
705714
},
715+
"gemini-2.5-pro-preview-05-06": {
716+
maxTokens: 65_535,
717+
contextWindow: 1_048_576,
718+
supportsImages: true,
719+
supportsPromptCache: true,
720+
isPromptCacheOptional: true,
721+
inputPrice: 2.5, // This is the pricing for prompts above 200k tokens.
722+
outputPrice: 15,
723+
cacheReadsPrice: 0.625,
724+
cacheWritesPrice: 4.5,
725+
tiers: [
726+
{
727+
contextWindow: 200_000,
728+
inputPrice: 1.25,
729+
outputPrice: 10,
730+
cacheReadsPrice: 0.31,
731+
},
732+
{
733+
contextWindow: Infinity,
734+
inputPrice: 2.5,
735+
outputPrice: 15,
736+
cacheReadsPrice: 0.625,
737+
},
738+
],
739+
},
706740
"gemini-2.0-flash-001": {
707741
maxTokens: 8192,
708742
contextWindow: 1_048_576,
@@ -1672,6 +1706,7 @@ export const PROMPT_CACHING_MODELS = new Set([
16721706
"anthropic/claude-3.7-sonnet:beta",
16731707
"anthropic/claude-3.7-sonnet:thinking",
16741708
"google/gemini-2.5-pro-preview-03-25",
1709+
"google/gemini-2.5-pro-preview-05-06",
16751710
"google/gemini-2.0-flash-001",
16761711
"google/gemini-flash-1.5",
16771712
"google/gemini-flash-1.5-8b",
@@ -1681,6 +1716,7 @@ export const PROMPT_CACHING_MODELS = new Set([
16811716
// in settings).
16821717
export const OPTIONAL_PROMPT_CACHING_MODELS = new Set([
16831718
"google/gemini-2.5-pro-preview-03-25",
1719+
"google/gemini-2.5-pro-preview-05-06",
16841720
"google/gemini-2.0-flash-001",
16851721
"google/gemini-flash-1.5",
16861722
"google/gemini-flash-1.5-8b",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export const ModelInfoView = ({
7373
),
7474
apiProvider === "gemini" && (
7575
<span className="italic">
76-
{selectedModelId === "gemini-2.5-pro-preview-03-25"
76+
{(selectedModelId === "gemini-2.5-pro-preview-03-25" || selectedModelId === "gemini-2.5-pro-preview-05-06")
7777
? t("settings:modelInfo.gemini.billingEstimate")
7878
: t("settings:modelInfo.gemini.freeRequests", {
7979
count: selectedModelId && selectedModelId.includes("flash") ? 15 : 2,

0 commit comments

Comments
 (0)