Repository navigation
2.9.0: learn tiered families from the catalog instead of a name list - #95
Merged
Merged
Conversation
Automated verification
typechecktestsbuild |
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.
New families are announced faster than this plugin ships. Gemini 4 Hyperion advertises
hyperion-minimal|low|medium|high— a suffix (minimal) and a name that exist nowhere in the code — and Carbon is next. Until now that needed a release plus a regex.What changed
src/plugin/config/tiered-families.ts(new): learns families from the catalog. Ids that share a base and differ by a thinking suffix group into one family; the vocabulary comes from what the backend advertises, orderedminimal < low < medium < high < maxwith unknown suffixes after known ones.model-discovery.ts: groups with the learned families instead of a fixedlow|medium|high|maxregex, and records how each family encodes its tiers.model-resolver.ts: buildsfamily-<tier>from that record. The old family regex stays as the fallback for when discovery has not run.Why the guards
The first version of the grouping was too loose and collapsed
gemini-2.5-flashwithgemini-2.5-prointo one model withflashandprovariants — the existing forward-only tests caught it. A suffix now counts only when it is a known tier, or when the catalog names the base on its own (hyperionnext tohyperion-ultra).Verification
npm test: 1,180 passed, 25 todo.minimal|low|medium|high; the resolver turns#minimalintohyperion-minimal; two model lines with unknown suffixes do not group; the measured catalog still surfaces nothing.