mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-06 23:44:36 +00:00
This builds the model catalog from per-provider definitions and models.dev v2 data. It eplacer `generate-models.ts` with one `defineProvider()` file per built-in provider, shared model-family rules (Claude, GPT, DeepSeek, Kimi, Google), and source adapters. models.dev is read through its v2 API. Outputs and CLI flags are unchanged.
740 B
740 B
| owner |
|---|
| davidbrai |
models
Which models exist and which one is used.
In:
- Built-in model catalog (packages/ai/catalog, models.dev, pi.dev registry).
- Model metadata: context window, max tokens, thinking level map, pricing.
- models.json custom providers and models.
- Model resolution: --model, --provider, defaultModel, startup fallback, scoped models, virtual models.
- Contents and ranking of /model, thinking level selection.
Not here:
- How the model selector is drawn: tui.
- Wire format and request contents: providers.
Examples: #9566, #9884, #10160, #9099, #10236, #10552, #8810, #10507.
Usually not worth opening: "add model X" when the data comes from models.dev (fix upstream), stale catalog fixed by updating pi.