Skip to content

[FEATURE]: include models.dev's canonical_model_id in model.list #64845

Open

Description

@Comprehensive-Jason

Feature hasn't been suggested before.

  • 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.

Activity

  1. opencodejr commented on Nov 19, 2026

    @opencodejr
    Contributor

    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).

    Related:

    Maintainers will look at the request and decide whether to add it.

  2. added
    area/providers
    type/feature
    version/v2
    on Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/providerstype/featureversion/v2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions