Documentation
¶
Overview ¶
Command genrates regenerates pricing/rates.json from the models.dev pricing database (with a LiteLLM fallback), filtered to a curated allowlist of the models AWF prices. It is a BUILD/MAINTENANCE tool — run via `make pricing-regen` or the scheduled pricing CI, NEVER by the awf binary. It uses only the standard library plus the in-repo pricing package, so it adds no dependency to the awf binary's module graph, and it touches the network ONLY here (at regen time) — `go build` and `awf run` stay fully offline and deterministic; go:embed sees the committed, human-reviewed rates.json.
Freshness is automated by a weekly GitHub Actions job that runs this tool and opens a review PR (.github/workflows/pricing.yml). The committed table stays a CURATED SUBSET (see allowlist.txt) — the whole upstream is NOT embedded.