You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE]: include models.dev's canonical_model_id in model.list #64845
I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
model.list doesn't say which underlying model an entry is. models.dev publishes canonical_model_id for most hosted models, but SourceModel in packages/core/src/models-dev.ts doesn't decode it, so it never reaches clients. OpenCode's own packages/data service already relies on the field (catalog-identity.ts), so it's a field the project already trusts.
Why I need it: clients that group or label models have nothing to go on but family and release_date. For OpenRouter's ~…-latest aliases that goes wrong. T3 Code marks ~openai/gpt-astra-latest as legacy because its release_date (2026-09-10) is older than openai/gpt-6.2-astra (2026-11-17), even though the alias serves 6.2 Astra (pingdotgg/t3code#39072). anomalyco/models.dev#14055 asks models.dev to link those aliases to their targets. This request is the other half: exposing that link once it exists.
Proposed: decode canonical_model_id as an optional string and return it on each model as canonicalID (or whatever name fits). No behavior change otherwise.
Thanks for the clear write-up! You're asking for models.dev's optional canonical_model_id to be decoded and returned on each model from model.list (as canonicalID or similar). Clients could then tell which underlying model an entry serves, such as an OpenRouter ~…-latest alias, without relying on family and release_date.
The code matches what you describe. SourceModel in packages/core/src/models-dev.ts decodes family and release_date but has no canonical_model_id. In this repository the field is only read in packages/data (catalog-identity.ts).
Activity
opencodejr commentedon Nov 19, 2026
Thanks for the clear write-up! You're asking for models.dev's optional
canonical_model_idto be decoded and returned on each model frommodel.list(ascanonicalIDor similar). Clients could then tell which underlying model an entry serves, such as an OpenRouter~…-latestalias, without relying onfamilyandrelease_date.The code matches what you describe.
SourceModelinpackages/core/src/models-dev.tsdecodesfamilyandrelease_datebut has nocanonical_model_id. In this repository the field is only read inpackages/data(catalog-identity.ts).Related:
Maintainers will look at the request and decide whether to add it.