From 19ef843d4fb3534ed603e7340f4fb72aee5ed030 Mon Sep 17 00:00:00 2001 From: Saoud Rizwan <7799382+saoudrizwan@users.noreply.github.com> Date: Sat, 26 Jul 2025 11:53:06 -0700 Subject: [PATCH] =?UTF-8?q?Revert=20"feat:=20update=20Gemini=20models=20-?= =?UTF-8?q?=20remove=20deprecated=20and=20add=202.5=20Flash-Lite=E2=80=A6"?= =?UTF-8?q?=20(#5194)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit f6273e066147c945f37c3081f99aad0e46a87e56. --- .changeset/brave-countries-love.md | 5 ----- src/shared/api.ts | 34 +++++++++++++++++++++--------- 2 files changed, 24 insertions(+), 15 deletions(-) delete mode 100644 .changeset/brave-countries-love.md diff --git a/.changeset/brave-countries-love.md b/.changeset/brave-countries-love.md deleted file mode 100644 index b8f7e3ea..00000000 --- a/.changeset/brave-countries-love.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"claude-dev": minor ---- - -Update Gemini models: remove deprecated experimental models and add 2.5 Flash-Lite Preview diff --git a/src/shared/api.ts b/src/shared/api.ts index caf7f1b1..36655044 100644 --- a/src/shared/api.ts +++ b/src/shared/api.ts @@ -835,16 +835,6 @@ export const geminiModels = { outputPrice: 3.5, }, }, - "gemini-2.5-flash-lite-preview-06-17": { - maxTokens: 65536, - contextWindow: 1_048_576, - supportsImages: true, - supportsPromptCache: true, - inputPrice: 0.1, - outputPrice: 0.4, - cacheReadsPrice: 0.025, - cacheWritesPrice: 1.0, - }, "gemini-2.0-flash-001": { maxTokens: 8192, contextWindow: 1_048_576, @@ -919,6 +909,22 @@ export const geminiModels = { }, ], }, + "gemini-1.5-flash-exp-0827": { + maxTokens: 8192, + contextWindow: 1_048_576, + supportsImages: true, + supportsPromptCache: false, + inputPrice: 0, + outputPrice: 0, + }, + "gemini-1.5-flash-8b-exp-0827": { + maxTokens: 8192, + contextWindow: 1_048_576, + supportsImages: true, + supportsPromptCache: false, + inputPrice: 0, + outputPrice: 0, + }, "gemini-1.5-pro-002": { maxTokens: 8192, contextWindow: 2_097_152, @@ -927,6 +933,14 @@ export const geminiModels = { inputPrice: 0, outputPrice: 0, }, + "gemini-1.5-pro-exp-0827": { + maxTokens: 8192, + contextWindow: 2_097_152, + supportsImages: true, + supportsPromptCache: false, + inputPrice: 0, + outputPrice: 0, + }, "gemini-exp-1206": { maxTokens: 8192, contextWindow: 2_097_152,