mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
feat: add support for choosing preferred OpenRouter provider #4613
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 @realchrisolin on GitHub (Mar 30, 2025).
Check Existing Issues
Problem Description
OpenWebUI currently lacks support for OpenRouter's custom routing feature, leading to inconsistent behavior when utilizing certain models. For instance, the "Qwen2.5 Coder 32B Instruct" model is served by multiple providers through OpenRouter, each offering different context window sizes:
Due to OpenRouter's dynamic load balancing across these providers, users experience variability in model performance, particularly concerning context handling. Implementing support for OpenRouter's custom routing within OpenWebUI would allow users to specify their preferred provider to ensure consistent behavior and optimal utilization of the model's capabilities.
Desired Solution you'd like
Manual control over which OpenRouter model provider is used
Alternatives Considered
No response
Additional Context
This functionality has been implemented in a different Javascript application (VS Code) with code to infer implementation from:
eb74f02094@tjbck commented on GitHub (Mar 30, 2025):
Should be implemented via Functions
@realchrisolin commented on GitHub (Apr 2, 2025):
in case someone finds this issue looking for this functionality, someone has already created a function to implement it https://github.com/eynsfordcq/openwebui-openrouter-provider-routing