mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[GH-ISSUE #23589] feat: Routing ala OpenRouter #58687
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @regulad on GitHub (Apr 11, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/23589
Check Existing Issues
Verify Feature Scope
Problem Description
Every request incoming to an Open WebUI instance goes to one model, and fails if the upstream provider fails.
Desired Solution you'd like
It would be great if Open WebUI could route incoming requests either via the API or via the web frontend to a model based on some given critera. OpenRouter does this for incoming inference requests based on a variety of heuristics, but for Open WebUI something as simple as a "fallback" model for handling requests when an upstream connection fails would be fantastic.
Alternatives Considered
You could use a service like OpenRouter directly, but then you can't do things like route to local connections. I tried implementing this with a rudamentary Open WebUI function (code below), but it didn't handle tool calls correctly; first class support would be much better.
Additional Context
No response
@Classic298 commented on GitHub (Apr 11, 2026):
Direct support for this is unlikely and should have been opened in discussions because this does not fit this
And a pipe for this is definitely the best choice. We have a simple pipe as well for routing between models and it works perfectly. Did you make sure to set it to native?