anomalyco / anomalyco/models.dev
JSON API Match models across providers (missing `base_model`)
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 6.9k
- Forks
- 1.7k
- Avg merge
- 3h 21m
- Merged PRs (30d)
- 873
Description
I can't find a way of matching the canonical model from provider-specific model data in the JSON API.
Looking at the .toml files in the repo it seems that the base_model field is used to link back to the canonical model data
https://github.com/anomalyco/models.dev/blob/dev/providers/openrouter/models/openai/gpt-5.5.toml
base_model = "openai/gpt-5.5"
Points to: https://github.com/anomalyco/models.dev/blob/dev/models/openai/gpt-5.5.toml
The problem is that base_model is not exposed in any of the 3 JSON APIs, and "id" in each provider model document in the API response is provider-specific and not the canonical model ID.
What would be the correct way of matching models across providers in the JSON API?
Thanks!
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Compare the provider model data in providers/openrouter/models/openai/gpt-5.5.toml with the canonical model at models/openai/gpt-5.5.toml, focusing on the base_model relationship. Then inspect the three JSON API responses and their generation entry points to determine where provider-to-canonical matching data is omitted. Done means the API exposes an unambiguous way to match these models across providers.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100