modelsdev-import

command
v0.9.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 4, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

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 -

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL