Skip to content

fix(chat): stop routing to retired models; fast[0] is gemini-3.6-flash - #231

Merged
VickyXAI merged 1 commit into
mainfrom
chore/retire-models-now-1124
Nov 24, 2026
Merged

VickyXAI merged 1 commit into
mainfrom
chore/retire-models-now-1124

Conversation

@VickyXAI

Copy link
Copy Markdown
Contributor

Owner-approved 2026-11-24 downstream update for provider retirements. The gateways (base/sol/arc, PRs in parallel) redirect each id below before pricing, so a stale id here never errors — it settles as another model at another price.

Changes

  • fast[0]: google/gemini-3.5-flash → google/gemini-3.6-flash, same position. Google has served 3.6 Flash under the 3.5 name since ~10-10 while the catalogue billed $1.5/$9; 3.6 is $0.75/$3.75. The fast tier's 100k-char reserve drops from ~$0.09 to $0.045407 against a live quote of $0.042845 (Base; Solana $0.041845).
  • openai/o3-mini, openai/o4-mini price rows dropped. Both redirect to gpt-5.4-mini, whose $4.5/M output is above their $1.1/$4.4 rows, so the rows would under-reserve a redirected call's output. The $5/$30 default covers the redirect target and the rate still listed today (the hy3 precedent).
  • openai/o1 and google/gemini-3.5-flash rows kept. Each is still listed at its old rate until every gateway ships the redirect, and each over-covers its successor. A reserve has to cover every rail in every deploy order (the claude-opus-4 rule). Drop o1 once no catalogue lists it at $15/$60.
  • verify:prices probes the fast tier at gemini-3.6-flash.
  • cohere/north-mini-code is left in FREE_CHAT_MODELS. It is not routed, and an explicit call still reserves $0. If a gateway starts answering it with an unknown-model 400, remove it then.

No tool description changed, so the schema-cost tables don't move.

Tests

  • New test/retired-models.test.ts. No tier names a redirected id, prefixed or bare. Each redirect target has a row. A pinned retired id reserves at least its successor's rate and its last listed rate, and covers the successor's reserve at 1k, 100k and 700k chars.
  • test/chat.test.ts: the live-charge table pins the fast tier at gemini-3.6-flash ($0.042845, from npm run verify:prices today).
  • npm run typecheck clean. npm test: 1524/1524 pass. npm run build OK. npm run verify:prices: exit 0. The catalogue sweep shows 0 models settling above their reserve on Base, Solana or the account sheet.
  • Mutation check: restoring the o3-mini row and putting gemini-3.5-flash back at fast[0] fails 4 of the 6 new tests.

Stacked child: the [merge 12-01] Gemini 2.5 PR targets this branch.

🤖 Generated with Claude Code

Owner-approved 2026-11-24. The gateways now redirect these ids before
pricing, so a stale id here never errors: it settles as another model.

- fast[0]: google/gemini-3.5-flash -> google/gemini-3.6-flash, same
  position. Google has served 3.6 Flash under the 3.5 name since ~10-10
  while the catalogue billed $1.5/$9; 3.6 is $0.75/$3.75. The fast tier's
  100k-char reserve drops from ~$0.09 to $0.045407 against a live $0.042845.
- openai/o3-mini and o4-mini price rows dropped: both redirect to
  gpt-5.4-mini, whose $4.5/M output is above their $1.1/$4.4 rows. The
  $5/$30 default covers the redirect target and the still-listed rate.
- openai/o1 and google/gemini-3.5-flash rows kept: each still lists at its
  old rate until every gateway ships the redirect, and each over-covers its
  successor.
- verify:prices probes the fast tier at gemini-3.6-flash.

test/retired-models.test.ts: no tier names a redirected id (prefixed or
bare), and a pinned retired id reserves at least its successor's rate and
its last listed rate, at every prompt size.
@VickyXAI
VickyXAI merged commit 68c0810 into main Nov 24, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant