genrates

command
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

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.

Jump to

Keyboard shortcuts

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