v1.1.0:5 — Gemini model menu correctness

User pointed out their Google AI Studio dropdown shows gemini-3-pro,
gemini-3.1-pro, gemini-3-flash and gemini-2.5-flash — not the longer
preview names I shipped in v1.1.0:4. The menu was missing all the
Flash variants entirely.

Fix:
  - Add gemini-3.1-pro (short form, what AI Studio shows)
  - Add gemini-3.1-flash + gemini-3.1-flash-lite (the cheapest 3.x)
  - Add gemini-3-pro + gemini-3-flash (older tier, still available)
  - Pricing entries for all of the above (~$0.50/$3 per M for Flash)

Pure data fix; no schema or behavior changes.
This commit is contained in:
Keysat
2026-05-11 12:51:17 -05:00
parent 7a62690a4a
commit 35539a9341
3 changed files with 58 additions and 6 deletions
+18 -5
View File
@@ -55,10 +55,17 @@ const PRICES: Record<string, PriceEntry> = {
'o4-mini': { inputPerM: 1.1, outputPerM: 4.4 },
// Google Gemini — Gemini 3.1 Pro is $2/$12 standard; >200K ctx is 2x.
// Gemini 3 Flash is $0.50/$3. 3.1 Flash-Lite is the cheapest of the
// 3.x line. Both short names (gemini-3.1-pro) and long preview names
// (gemini-3.1-pro-preview) are accepted by the API and listed here.
'gemini-3.1-pro-preview': { inputPerM: 2, outputPerM: 12 },
'gemini-3.1-pro': { inputPerM: 2, outputPerM: 12 },
'gemini-3.1-flash-lite': { inputPerM: 0.1, outputPerM: 0.4 },
'gemini-3.1-flash': { inputPerM: 0.5, outputPerM: 3 },
'gemini-3-pro-preview': { inputPerM: 2, outputPerM: 12 },
'gemini-3-pro': { inputPerM: 2, outputPerM: 12 },
'gemini-3-flash-preview': { inputPerM: 0.5, outputPerM: 3 },
'gemini-3-flash': { inputPerM: 0.5, outputPerM: 3 },
'gemini-2.5-pro': { inputPerM: 1.25, outputPerM: 10 },
'gemini-2.5-flash': { inputPerM: 0.3, outputPerM: 2.5 },
'gemini-2.0-flash': { inputPerM: 0.1, outputPerM: 0.4 },
@@ -104,11 +111,17 @@ export const MODEL_MENU: Record<string, ModelOption[]> = {
{ id: 'o3', label: 'o3 (reasoning)' },
],
gemini: [
{ id: 'gemini-3.1-pro-preview', label: 'Gemini 3.1 Pro Preview (most capable)', recommended: true },
{ id: 'gemini-2.5-pro', label: 'Gemini 2.5 Pro', recommended: true },
{ id: 'gemini-2.5-flash', label: 'Gemini 2.5 Flash (cheap, fast)', recommended: true },
{ id: 'gemini-2.0-flash', label: 'Gemini 2.0 Flash' },
{ id: 'gemini-1.5-pro', label: 'Gemini 1.5 Pro (legacy)' },
// Names match what Google's AI Studio dropdown shows. Both short
// (gemini-3.1-pro) and long preview names work via the API; we
// ship the short forms because that's what the Studio UI uses.
{ id: 'gemini-3.1-pro', label: 'Gemini 3.1 Pro (most capable)', recommended: true },
{ id: 'gemini-3.1-flash', label: 'Gemini 3.1 Flash (fast, cheap)', recommended: true },
{ id: 'gemini-3.1-flash-lite', label: 'Gemini 3.1 Flash Lite (cheapest)', recommended: true },
{ id: 'gemini-3-pro', label: 'Gemini 3 Pro' },
{ id: 'gemini-3-flash', label: 'Gemini 3 Flash' },
{ id: 'gemini-2.5-pro', label: 'Gemini 2.5 Pro' },
{ id: 'gemini-2.5-flash', label: 'Gemini 2.5 Flash' },
{ id: 'gemini-2.0-flash', label: 'Gemini 2.0 Flash (legacy)' },
],
// openai-compatible + ollama: no curated menu — model names are
// gateway- or host-specific. Ollama auto-detects via /api/tags.