Documentation
¶
Overview ¶
Command modelsdev-gen regenerates the x/catalog/models/ subtree from the upstream models.dev catalog. Run via `go run ./cmd/modelsdev-gen` from the repo root, or via `task generate`.
The generator is a pure function of its inputs:
- GET https://models.dev/api.json (the only network call)
- The hard-coded primaryProviders allowlist below
It writes one file per primary provider under x/catalog/models/. The output is committed; the generator does not run on build. Re-run when models.dev ships new model revisions or when the allowlist grows.
Stdlib only: net/http, encoding/json, go/format, text/template.
Click to show internal directories.
Click to hide internal directories.