Documentation
¶
Overview ¶
sync-models-dev fetches the models.dev community catalogue and generates internal/providers/generated_models.go: a lookup table Antares uses to enrich provider /models responses with context windows, pricing, and capability flags the provider APIs themselves rarely return.
Run it with `make sync-models` (or `go run scripts/sync-models-dev.go`). Output is deterministic — providers and models are emitted in sorted order so re-runs against an unchanged upstream produce a zero-diff file.
Source: https://models.dev/api.json — community-curated, provider-agnostic. Licence: models.dev is MIT-licensed. The generated file bundles a snapshot; re-sync periodically to pick up new models. The manual overrides in internal/providers/catalog.go (contextWindows) remain the escape hatch for entries where upstream is missing or wrong.