Add a sameAs link from a reseller row to the maker's row #199
Send to my agentClosed
tombeckenham opened this issue ·0 comments
Problem#
The catalog cannot say that two rows at different providers are the same model.
| Row | Is the same model as |
|---|---|
openrouter/anthropic/claude-opus-4-5 | anthropic/claude-opus-4-5 |
azure/gpt-4o-2024-11-20 | openai/gpt-4o-2024-11-20 |
cloudflare-ai-gateway/workers-ai/@cf/moonshotai/kimi-k2.6 | cloudflare-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-modelskeeps 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:
- 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.
- 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. - Do not match on similar names.
kimi-k2.6andmoonshotai/Kimi-K2.6look the same, but if no native source says so, leave the link null. - The target must be a row that exists. If the maker's row is missing, leave the link null.
- Add
factSources.sameAswith the derivation, like the other facts.
Acceptance#
GET /v1/models/openrouter/anthropic%2Fclaude-opus-4-5returnssameAspointing 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).
tombeckenham added labelsenhancement
tombeckenham closed this
Sign in to join this conversation.