Skip to content

Commit ff50a47

Browse files
authored
feat: enable prompt caching for gemini-2.5-flash-preview-05-20 (#3907)
* feat: enable prompt caching for gemini-2.5-flash-preview-05-20 * feat: Add cache pricing for gemini-2.5-flash-preview-05-20 models
1 parent 4729432 commit ff50a47

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/shared/api.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ export const vertexModels = {
529529
maxTokens: 65_535,
530530
contextWindow: 1_048_576,
531531
supportsImages: true,
532-
supportsPromptCache: false,
532+
supportsPromptCache: true,
533533
inputPrice: 0.15,
534534
outputPrice: 3.5,
535535
maxThinkingTokens: 24_576,
@@ -540,7 +540,7 @@ export const vertexModels = {
540540
maxTokens: 65_535,
541541
contextWindow: 1_048_576,
542542
supportsImages: true,
543-
supportsPromptCache: false,
543+
supportsPromptCache: true,
544544
inputPrice: 0.15,
545545
outputPrice: 0.6,
546546
},
@@ -772,9 +772,11 @@ export const geminiModels = {
772772
maxTokens: 65_535,
773773
contextWindow: 1_048_576,
774774
supportsImages: true,
775-
supportsPromptCache: false,
775+
supportsPromptCache: true,
776776
inputPrice: 0.15,
777777
outputPrice: 3.5,
778+
cacheReadsPrice: 0.0375,
779+
cacheWritesPrice: 1.0,
778780
maxThinkingTokens: 24_576,
779781
supportsReasoningBudget: true,
780782
requiredReasoningBudget: true,
@@ -783,9 +785,11 @@ export const geminiModels = {
783785
maxTokens: 65_535,
784786
contextWindow: 1_048_576,
785787
supportsImages: true,
786-
supportsPromptCache: false,
788+
supportsPromptCache: true,
787789
inputPrice: 0.15,
788790
outputPrice: 0.6,
791+
cacheReadsPrice: 0.0375,
792+
cacheWritesPrice: 1.0,
789793
},
790794
"gemini-2.5-pro-exp-03-25": {
791795
maxTokens: 65_535,

0 commit comments

Comments
 (0)