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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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