Documentation
¶
Overview ¶
Command gen refreshes the models.dev catalog snapshot embedded in the docker-agent binary.
It fetches https://models.dev/api.json, re-marshals it through the trimmed modelsdev.Database type (dropping fields docker-agent never reads) and writes the result to pkg/modelsdev/snapshot.json together with a generated snapshot_date.txt recording when the snapshot was taken.
Run it via `go generate ./pkg/modelsdev/...` or the `task update-models` target. The fetch is best-effort: when models.dev is unreachable the existing snapshot is left untouched so offline builds keep working.
Click to show internal directories.
Click to hide internal directories.