Documentation
¶
Overview ¶
Command modelsdoc regenerates MODELS.md from the same catalogs `pi model list` prints.
MODELS.md is a reference document, and a hand-maintained one rots: it sat a month out of date because regenerating it meant pasting nine provider tables by hand. This does the pasting.
Usage:
go run ./hack/modelsdoc # rewrite MODELS.md go run ./hack/modelsdoc -dry-run # print it instead go run ./hack/modelsdoc -out FILE
Two sections are not taken from a live provider:
- Agentgateway: the live gateway answers with whatever the local config.yaml routes to plus every model it can reach, which is machine state, not repo truth. The section lists the routing patterns declared in hack/agentgateway/config.yaml.
- Azure: there is no listing API reachable with an API key, so the embedded deployment catalog is the source.
A provider whose key is missing keeps the section already in the document, so a missing key leaves one stale section rather than deleting it.
Click to show internal directories.
Click to hide internal directories.