From 7c551206bb2130b32790c8b377a84b61d8196355 Mon Sep 17 00:00:00 2001 From: Shariq Riaz Date: Wed, 21 May 2025 05:47:53 +0500 Subject: [PATCH 1/2] feat: add gemini-2.5-flash-preview-05-20 models --- src/shared/api.ts | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/shared/api.ts b/src/shared/api.ts index 2a573a1bbc..05d6c3f58d 100644 --- a/src/shared/api.ts +++ b/src/shared/api.ts @@ -673,6 +673,25 @@ export const geminiModels = { outputPrice: 0.6, thinking: false, }, + "gemini-2.5-flash-preview-05-20:thinking": { + maxTokens: 65_535, + contextWindow: 1_048_576, + supportsImages: true, + supportsPromptCache: false, + inputPrice: 0.15, + outputPrice: 3.5, + thinking: true, + maxThinkingTokens: 24_576, + }, + "gemini-2.5-flash-preview-05-20": { + maxTokens: 65_535, + contextWindow: 1_048_576, + supportsImages: true, + supportsPromptCache: false, + inputPrice: 0.15, + outputPrice: 0.6, + thinking: false, + }, "gemini-2.5-pro-exp-03-25": { maxTokens: 65_535, contextWindow: 1_048_576, @@ -1762,6 +1781,8 @@ export const PROMPT_CACHING_MODELS = new Set([ "google/gemini-2.5-pro-preview", "google/gemini-2.5-flash-preview", "google/gemini-2.5-flash-preview:thinking", + "google/gemini-2.5-flash-preview-05-20", + "google/gemini-2.5-flash-preview-05-20:thinking", "google/gemini-2.0-flash-001", "google/gemini-flash-1.5", "google/gemini-flash-1.5-8b", From 26b4faf146e7d88b5830643456278b1ffc4eadf7 Mon Sep 17 00:00:00 2001 From: Shariq Riaz Date: Sat, 24 May 2025 05:11:09 +0500 Subject: [PATCH 2/2] removed duplicated flash 05-20 --- src/shared/api.ts | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/shared/api.ts b/src/shared/api.ts index 6d9080b5dc..e336d5ce23 100644 --- a/src/shared/api.ts +++ b/src/shared/api.ts @@ -787,25 +787,6 @@ export const geminiModels = { inputPrice: 0.15, outputPrice: 0.6, }, - "gemini-2.5-flash-preview-05-20:thinking": { - maxTokens: 65_535, - contextWindow: 1_048_576, - supportsImages: true, - supportsPromptCache: false, - inputPrice: 0.15, - outputPrice: 3.5, - thinking: true, - maxThinkingTokens: 24_576, - }, - "gemini-2.5-flash-preview-05-20": { - maxTokens: 65_535, - contextWindow: 1_048_576, - supportsImages: true, - supportsPromptCache: false, - inputPrice: 0.15, - outputPrice: 0.6, - thinking: false, - }, "gemini-2.5-pro-exp-03-25": { maxTokens: 65_535, contextWindow: 1_048_576,