mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
On each OpenRouter refresh, combine the catalog (built-in models plus a newer pi.dev catalog) with GET /models/user for the user's key: keep only the listed chat models and take their context size, max output and prices from it. Image and classifier models are kept. The combined list is saved and replaces the OpenRouter catalog, including offline. - ai: add personalizeOpenRouterCatalog and RefreshModelsContext.baseUrl, so the request follows a base URL configured in models.json (regional endpoints) - ai: share OpenRouter price conversion with the generator; negative prices (router models such as openrouter/auto) become 0 - coding-agent: add withPersonalizedCatalog next to withRemoteCatalog - docs: OpenRouter section in providers.md fixes #10353 |
||
|---|---|---|
| .. | ||
| ai-gateway-pricing.ts | ||
| check-model-data.ts | ||
| generate-models.ts | ||
| generate-test-image.ts | ||
| hydrate-model-catalog.ts | ||
| model-data.ts | ||
| models-dev-reasoning-options.ts | ||
| openrouter-catalog.ts | ||
| openrouter-reasoning-options.ts | ||