modelsdoc

command
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: MIT Imports: 13 Imported by: 0

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.

Jump to

Keyboard shortcuts

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