Repository navigation
Conversation
…iscovery Bare model names only resolved through hand-written aliases, so every new upstream model launched blind: Gemini 3.7 Flash shipped as tiered ids (...-high/-medium/-low) with no alias for the bare base name, mis-routing bare requests until the catalog was re-frozen by hand. - new src/lib/providerModels/syncedAutoAliases.ts derives bare-base -> default-tier aliases (high > medium > low, mirroring the backend's High default) from the synced discovery catalog, in memory (no persistence, always consistent with the latest sync). A base that is itself callable gets no alias; agy wins over antigravity for the same base. - getCombinedModelAliases merges them at LOWEST precedence — explicit DB/settings/wildcard aliases always win. - Antigravity discovery normalizer now forwards token windows (inputTokenLimit/outputTokenLimit, or contextWindow/maxOutputTokens spellings) when the upstream payload carries them; the existing import/reconcile chain (cheaper-inference#11016) already enforces them at request time — nothing consumed them before because the normalizer dropped them. - field extraction is defensive: absent/non-numeric fields yield nothing, so payloads without limits change zero behavior. Second slice of the accepted direction in cheaper-inference#2979; pairs with the reactive discovery trigger (cheaper-inference#11688) and the autoSync default (cheaper-inference#11685).
Collaborator
|
Thanks for this! Its base (main) had diverged too far from the active release/v3.8.51 for a |
muhamadgalihsaputra
pushed a commit
to niyatna/NiyatnaRoute
that referenced
this pull request
Sep 27, 2026
…iscovery (cheaper-inference#11889) Recreated from cheaper-inference#11689 (MumuTW) onto the active release/v3.8.51 — commit cherry-picked cleanly with author preserved (auto-merged onto the just-boarded cheaper-inference#11888); 10/10 focused tests + file-size all green on this tip. Thanks for the fix!
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.
Summary
Second slice of the accepted direction in #2979 (pairs with #11685 autoSync default and #11688 reactive discovery trigger). Two gaps closed:
Related Issues
Validation
Tests Added Or Updated
Coverage Notes
syncedAutoAliases.ts fully covered. normalizers.ts changes covered by the extraction tests (both payload shapes exercised). model.ts merge order covered indirectly by the alias regression suite (explicit aliases still resolve) plus the derivation tests.
Reviewer Notes