Skip to content

Commit ab31bcd

Browse files
committed
LLMs: Gemini: remove obsolete
1 parent 563a998 commit ab31bcd

File tree

1 file changed

+10
-59
lines changed

1 file changed

+10
-59
lines changed

src/modules/llms/server/gemini/gemini.models.ts

Lines changed: 10 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -124,23 +124,6 @@ const gemini20FlashLitePricing: ModelDescriptionSchema['chatPrice'] = {
124124
output: 0.30,
125125
};
126126

127-
const gemini15FlashPricing: ModelDescriptionSchema['chatPrice'] = {
128-
input: [{ upTo: 128000, price: 0.075 }, { upTo: null, price: 0.15 }],
129-
output: [{ upTo: 128000, price: 0.30 }, { upTo: null, price: 0.60 }],
130-
// Implicit caching is only available in 2.5 models for now. cache: { cType: 'oai-ac', read: [{ upTo: 128000, price: 0.01875 }, { upTo: null, price: 0.0375 }] },
131-
};
132-
133-
const gemini15Flash8BPricing: ModelDescriptionSchema['chatPrice'] = {
134-
input: [{ upTo: 128000, price: 0.0375 }, { upTo: null, price: 0.075 }],
135-
output: [{ upTo: 128000, price: 0.15 }, { upTo: null, price: 0.30 }],
136-
// Implicit caching is only available in 2.5 models for now. cache: { cType: 'oai-ac', read: [{ upTo: 128000, price: 0.01 }, { upTo: null, price: 0.02 }] },
137-
};
138-
139-
const gemini15ProPricing: ModelDescriptionSchema['chatPrice'] = {
140-
input: [{ upTo: 128000, price: 1.25 }, { upTo: null, price: 2.50 }],
141-
output: [{ upTo: 128000, price: 5.00 }, { upTo: null, price: 10.00 }],
142-
// Implicit caching is only available in 2.5 models for now. cache: { cType: 'oai-ac', read: [{ upTo: 128000, price: 0.3125 }, { upTo: null, price: 0.625 }] },
143-
};
144127

145128

146129
const IF_25 = [LLM_IF_OAI_Chat, LLM_IF_OAI_Vision, LLM_IF_OAI_Fn, LLM_IF_OAI_Json, LLM_IF_OAI_Reasoning, LLM_IF_GEM_CodeExecution, LLM_IF_OAI_PromptCaching];
@@ -256,15 +239,9 @@ const _knownGeminiModels: ({
256239
],
257240
benchmark: { cbaElo: 1407 }, // gemini-2.5-flash (updated from CSV)
258241
},
259-
{
260-
hidden: true, // show the final stable version instead
261-
id: 'models/gemini-2.5-flash-preview-05-20',
262-
isPreview: true,
263-
chatPrice: gemini25FlashPricing,
264-
interfaces: [LLM_IF_OAI_Chat, LLM_IF_OAI_Vision, LLM_IF_OAI_Fn, LLM_IF_OAI_Json, LLM_IF_OAI_Reasoning, LLM_IF_GEM_CodeExecution],
265-
parameterSpecs: [{ paramId: 'llmVndGeminiThinkingBudget' }],
266-
benchmark: { cbaElo: 1424 },
267-
},
242+
243+
// REMOVED MODELS (no longer returned by API as of Nov 20, 2025):
244+
// - models/gemini-2.5-flash-preview-05-20 (superseded by 09-2025 version)
268245

269246
// 2.5 Pro-Based: Gemini Computer Use Preview - Released October 7, 2025
270247
// IMPORTANT: This model requires CLIENT-SIDE browser automation implementation
@@ -375,17 +352,9 @@ const _knownGeminiModels: ({
375352
],
376353
benchmark: { cbaElo: 1310 }, // Based on 2.0 Flash-Lite performance
377354
},
378-
// 2.5 Flash-Lite Preview (oldest version, superseded)
379-
{
380-
hidden: true, // Superseded by stable version
381-
id: 'models/gemini-2.5-flash-lite-preview-06-17',
382-
labelOverride: 'Gemini 2.5 Flash-Lite Preview 06-17',
383-
isPreview: true,
384-
chatPrice: gemini25FlashLitePricing,
385-
interfaces: IF_25,
386-
parameterSpecs: [{ paramId: 'llmVndGeminiThinkingBudget' }],
387-
benchmark: { cbaElo: 1310 }, // Estimated based on 2.0 Flash-Lite performance
388-
},
355+
356+
// REMOVED MODELS (no longer returned by API as of Nov 20, 2025):
357+
// - models/gemini-2.5-flash-lite-preview-06-17 (superseded by 09-2025 version)
389358

390359

391360
/// Generation 2.0
@@ -464,20 +433,8 @@ const _knownGeminiModels: ({
464433
isPreview: true,
465434
},
466435

467-
// 2.0 Flash Preview Image Generation (Newer than the Experimental, introduced on 05-07)
468-
{
469-
hidden: true, // replaced by Nano Banana
470-
id: 'models/gemini-2.0-flash-preview-image-generation',
471-
// labelOverride: 'Gemini 2.0 Flash Image Generation Preview',
472-
isPreview: true,
473-
chatPrice: gemini20FlashPricing, // FIXME: this is missing the per-image generation pricing! (We don't have it in the code yet)
474-
interfaces: [
475-
LLM_IF_OAI_Chat, LLM_IF_OAI_Vision, LLM_IF_GEM_CodeExecution,
476-
LLM_IF_Outputs_Image,
477-
LLM_IF_HOTFIX_StripSys0, // This first Gemini Image Generation model does not support the developer instruction
478-
],
479-
// non benchmarkable because generates images
480-
},
436+
// REMOVED MODELS (no longer returned by API as of Nov 20, 2025):
437+
// - models/gemini-2.0-flash-preview-image-generation (replaced by Nano Banana / Nano Banana Pro)
481438

482439
// 2.0 Flash Experimental Image Generation
483440
{
@@ -634,14 +591,8 @@ const _knownGeminiModels: ({
634591

635592
/// Media Generation Models - NOTE: THESE ARE FILTERED OUT (!) - but here anyway for reference
636593

637-
// Imagen 3 - Image Generation
638-
{
639-
id: 'models/imagen-3.0-generate-002',
640-
isPreview: false,
641-
// chatPrice: { input: 0.03, output: 0.03 }, // per image pricing
642-
interfaces: [LLM_IF_Outputs_Image], // Not a chat model
643-
hidden: true, // Not accessible through the normal chat interface
644-
},
594+
// REMOVED MODELS (no longer returned by API as of Nov 20, 2025):
595+
// - models/imagen-3.0-generate-002 (Imagen 3 image generation - replaced by Nano Banana models)
645596

646597
// Veo 2 - Video Generation
647598
{

0 commit comments

Comments
 (0)