Repository navigation
Otoroshi LLM Extension 0.0.91
Highlights
- Several targets per provider (#246): a provider can now spread its calls over several copies of its server (weighted round robin, random or least loaded). It skips the copies a monitoring tool reports as saturated, draining or down, and retries a failed call on another one.
- Time-to-first-token timeout (#244): a streamed call whose first token arrives too late is dropped, so the fallback can move on to the next provider instead of making your users wait.
- Named endpoints on the Otoroshi router (#252): one router can expose several virtual models under names you pick (
assistant,support, …). Each one has its own routing mode and shows up in/v1/models. A router can also be locked to a single mode, and each candidate can carry its ownscoreandcost, which helps with self-hosted models that no public catalog knows about. You can set all of this from the admin form and from AI Studio. - Anthropic
/v1/messages/count_tokens(#237): the endpoint now answers. It uses the provider's own counting route, a one-token measuring call or an estimate, whichever you choose. - OpenAI decisions API, general availability: conversations, tool calls, JSON and image links are supported, and decisions are billed at their own prices.
Costs and usage
- Prompt tokens that providers read from their cache are now counted and priced (#236), and AI Studio shows them (#242).
- Reasoning tokens are no longer counted twice in budgets, analytics and cost estimates (#234).
- Chat usage audits now include
requested_model, the model the caller asked for, which can differ from the one that answered behind a router, a load balancer or a model override (#253). - A budget keeps its list of consumers after a reset.
- OpenRouter prices are now bundled with the extension, since LiteLLM no longer publishes them. All prices have been refreshed.
Errors and resilience
- Provider errors no longer always reach the caller as a 400 (#247). A 429 is passed through with its
Retry-After. A provider refusing the gateway's own credentials, or failing with a 5xx, now gives a 502. Any other 4xx keeps its original status. - The provider's finish reason is kept in every API format, so
lengthno longer turns intostop(#235, #241). - Model listings keep working when one provider is unreachable (#248). When no provider at all can list its models, you get an error instead of an empty list (#245).
- You can configure a provider's circuit breaker from its form.
Streaming and routing
- Streaming now works through the Otoroshi router (#250), load balancers and the fusion-router. A target that cannot stream answers with a regular, non-streamed response.
- Streamed Gemini answers no longer lose their text (#249).
- An API key allowed to call a router can now reach that router's decision model, classifier, panel and judge (#251).
AI Studio
- Pick the organization of a new workspace when you create it.
- The Models page lists the models of load balancers (#232).
- The chat model picker shows model labels instead of raw ids (#233).
- The chat only offers presets that fit the selected models, and the caller's context is no longer sent to the provider (#243).
- An OpenAPI spec of the AI Studio API is now available.
Other improvements
- HTTP tool functions fill their placeholders with arguments of any type, not only strings.
- An MCP server exposed on an OpenAI-compatible route uses the stateless MCP protocol (2026-07-28) by default when no version is set.
- Built on Otoroshi 18.1.0.
Thanks to @fcroiseaux and @GridexX for their contributions to this release!
Full changelog: 0.0.90...0.0.91