Documentation
¶
Overview ¶
modelsdev-import fetches the models.dev dataset (https://models.dev/api.json) and writes relay-catalog YAML — Provider, Host, Model, HostBinding, and Pricing — for an allowlist of providers.
Each models.dev provider becomes one relay Provider + Host; its models are owned by the provider and bound to the host. The provider's @ai-sdk npm tag selects the adapter; the verbatim models.dev model key is preserved as the binding UpstreamName (the exact wire string). Providers whose wire shape has no relay adapter yet (Cohere, Bedrock) are written under drafts/.
Usage:
modelsdev-import -out ../relay-catalog/data modelsdev-import -source-file /tmp/md.json -hosts anthropic,openai -out -
Click to show internal directories.
Click to hide internal directories.