Repository navigation
fix(models): use models.dev as metadata authority - #1315
Merged
Merged
Conversation
Use the published catalog for chat model limits and capabilities so provider model lists no longer inherit one repeated pi-ai context value. Keep endpoint discovery and explicit per-account user overrides intact. Add regression coverage and update the catalog decision and runtime specs. Fixes #1304
Pin the issue's one-million-token Astra configuration through live model discovery, metadata caching, settings selection, and runtime budget resolution. This locks down the distinction between published catalog data and an account's explicit context window.
Keep the Chinese decisions log aligned with the new models.dev chat metadata authority and preserve the superseded catalog decisions as historical context. Match the source decision table and timeline.
Update source-contract and lookup fixtures that still encode the former Pi metadata authority. Keep the assertions focused on bundled models.dev metadata and explicit provider-binding resolution.
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
Validation
node --test apps/desktop/test/model-binding-catalog-source.test.mjs apps/desktop/test/model-discovery-precedence.test.mjs apps/desktop/test/models-dev-catalog.test.mjs apps/desktop/test/provider-catalog-runtime.test.mjs apps/desktop/test/provider-endpoint-metadata.test.mjs apps/desktop/test/vendor-oauth-login.test.mjs— 118 passed.node_modules/.bin/tsc -p apps/desktop/tsconfig.json --noEmit— passed.node scripts/check-agent-policy-sync.mjs— passed.node scripts/check-pr-base-main.mjs— passed.Closes #1304