Repository navigation
fix(chat): stop routing to retired models; fast[0] is gemini-3.6-flash - #231
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-miniprice rows dropped. Both redirect togpt-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/o1andgoogle/gemini-3.5-flashrows 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). Dropo1once no catalogue lists it at $15/$60.verify:pricesprobes the fast tier atgemini-3.6-flash.cohere/north-mini-codeis left inFREE_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
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, fromnpm run verify:pricestoday).npm run typecheckclean.npm test: 1524/1524 pass.npm run buildOK.npm run verify:prices: exit 0. The catalogue sweep shows 0 models settling above their reserve on Base, Solana or the account sheet.o3-minirow and puttinggemini-3.5-flashback atfast[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