Skip to content
Source
Sign inSign up
TanStack/schemas

Add a sameAs link from a reseller row to the maker's row #199

Send to my agent
Closedtombeckenham opened this issue 0 comments
tombeckenhamcommented

Problem

The catalog cannot say that two rows at different providers are the same model.

RowIs the same model as
openrouter/anthropic/claude-opus-4-5anthropic/claude-opus-4-5
azure/gpt-4o-2024-11-20openai/gpt-4o-2024-11-20
cloudflare-ai-gateway/workers-ai/@cf/moonshotai/kimi-k2.6cloudflare-workers-ai/@cf/moonshotai/kimi-k2.6

models.dev has canonical_model_id for this. We have no equivalent.

Impact

  • TanStack AI's @tanstack/ai-models keeps 79 hand-written entries that say "take this model's data from that row" (packages/ai-models/scripts/known-ids.ts). It needs them when a provider serves a model but publishes no limits or price for it.
  • No one can ask "what does this model cost at each provider".

Ask

Add a per-model link to the maker's row, for example:

"sameAs": { "provider": "anthropic", "rawId": "claude-opus-4-5" }

Rules:

  1. It is a link only. Do not copy the maker's price, limits, or reasoning onto the row. The rule from #75 stays: a row holds only what its own provider publishes. The consumer decides whether to follow the link.
  2. Set it only when the provider itself names the maker. A gateway id with a maker prefix (anthropic/…, openai/…, google/…) is the main case. A provider docs page that names the upstream model also counts.
  3. Do not match on similar names. kimi-k2.6 and moonshotai/Kimi-K2.6 look the same, but if no native source says so, leave the link null.
  4. The target must be a row that exists. If the maker's row is missing, leave the link null.
  5. Add factSources.sameAs with the derivation, like the other facts.

Acceptance

  • GET /v1/models/openrouter/anthropic%2Fclaude-opus-4-5 returns sameAs pointing at the Anthropic row.
  • Vercel, OpenRouter, and Cloudflare AI Gateway rows with a maker prefix have the link when the maker's row exists.
  • A row with no native statement of its maker has sameAs: null.
  • No fact on a row changes because of the link.

Out of scope

  • A reverse list of every provider that serves a model. A consumer can build it from the links.
  • Fuzzy matching across open-weight hosts (Together, Fireworks, Hugging Face).
  1. tombeckenham added labelsenhancement

  2. tombeckenham closed this

Sign in to join this conversation.