From f74a8ba82e87dadaeeff863cc4b05aae8b8e4be5 Mon Sep 17 00:00:00 2001 From: Ara Date: Wed, 28 May 2025 03:12:41 +0400 Subject: [PATCH] Show Gemini 2.5 Pro prompt cache (#3859) * Show gemini 2.5 flash prompt cache * Show gemini 2.5 flash prompt cache --------- Co-authored-by: Cline Evaluation --- .changeset/olive-llamas-admire.md | 5 +++++ src/shared/api.ts | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 .changeset/olive-llamas-admire.md diff --git a/.changeset/olive-llamas-admire.md b/.changeset/olive-llamas-admire.md new file mode 100644 index 00000000..524b9dcc --- /dev/null +++ b/.changeset/olive-llamas-admire.md @@ -0,0 +1,5 @@ +--- +"claude-dev": patch +--- + +Show prompt cache for gemini 2.5 flash diff --git a/src/shared/api.ts b/src/shared/api.ts index fa65549b..04c96e15 100644 --- a/src/shared/api.ts +++ b/src/shared/api.ts @@ -539,7 +539,7 @@ export const vertexModels = { maxTokens: 65536, contextWindow: 1_048_576, supportsImages: true, - supportsPromptCache: false, + supportsPromptCache: true, supportsGlobalEndpoint: true, inputPrice: 0.15, outputPrice: 0.6, @@ -552,7 +552,7 @@ export const vertexModels = { maxTokens: 65536, contextWindow: 1_048_576, supportsImages: true, - supportsPromptCache: false, + supportsPromptCache: true, supportsGlobalEndpoint: true, inputPrice: 0.15, outputPrice: 0.6, @@ -683,7 +683,7 @@ export const geminiModels = { maxTokens: 65536, contextWindow: 1_048_576, supportsImages: true, - supportsPromptCache: false, + supportsPromptCache: true, inputPrice: 0.15, outputPrice: 0.6, thinkingConfig: { @@ -695,7 +695,7 @@ export const geminiModels = { maxTokens: 65536, contextWindow: 1_048_576, supportsImages: true, - supportsPromptCache: false, + supportsPromptCache: true, inputPrice: 0.15, outputPrice: 0.6, thinkingConfig: {