modelsdev-gen

command
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2026 License: AGPL-3.0 Imports: 13 Imported by: 0

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:

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.

Jump to

Keyboard shortcuts

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