mix openrouter.snapshot (OpenRouter SDK v0.1.0)

Copy Markdown View Source

fetches /api/v1/models and /api/v1/providers from openrouter and writes them into priv/openrouter/. designed for ci to call on a schedule and auto-open a pr when drift exists.

usage

mix openrouter.snapshot           # write snapshot, bump version
mix openrouter.snapshot --check   # exit non-zero on drift (pr gate)

network calls go via :httpc so we don't depend on a live finch pool while compiling. no api key is required for either endpoint.