mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
The OpenRouterRouting interface only had only and order, but the runtime passes the entire object as-is to the OpenRouter API's provider field. This means all other fields worked at runtime but had no TypeScript type-checking, no autocomplete, and no config validation. This adds all fields from the OpenRouter provider selection API (https://openrouter.ai/docs/guides/routing/provider-selection): allow_fallbacks, require_parameters, data_collection, zdr, enforce_distillable_text, ignore, quantizations, sort, max_price, preferred_min_throughput, preferred_max_latency. Also fixes the models.md documentation which had an invalid fallbacks field in the example (not part of the OpenRouter API), replaces it with a comprehensive example showing all available fields, and clarifies that openRouterRouting is sent as-is in the provider field. |
||
|---|---|---|
| .. | ||
| images | ||
| compaction.md | ||
| custom-provider.md | ||
| development.md | ||
| extensions.md | ||
| json.md | ||
| keybindings.md | ||
| models.md | ||
| packages.md | ||
| prompt-templates.md | ||
| providers.md | ||
| rpc.md | ||
| sdk.md | ||
| session.md | ||
| settings.md | ||
| shell-aliases.md | ||
| skills.md | ||
| terminal-setup.md | ||
| termux.md | ||
| themes.md | ||
| tmux.md | ||
| tree.md | ||
| tui.md | ||
| windows.md | ||