mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 02:48:13 -05:00
Feat: Model Check by Name not ID. #4806
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 @spammenotinoz on GitHub (Apr 11, 2025).
Check Existing Issues
Problem Description
I know this can be implemented outside of Open-WebUI and I caused this issue myself. But I do like to experiment with pipelines\providers.
Background:
Model Defined as gpt-4o using provider
I want to switch providers, say using a pipeline and create a new model called gpt-4o.
When I delete the existing model gpt-4o, as expected existing chats using gpt-4o return "model not found" as the model ID changed.
The issue does not occur when the models are both provided by Connections, however if the second is provided by a pipe \ pipeline the failover does not occur.
Workaround:
Not a major issue, as you can just select a new model again.
Desired Solution you'd like
Requested Change:
Instead of throwing the model not found error, check for an existing model of the same name and if found. ie: Model Name.
Similar to how the loadbalancing\failover works for connections.
Alternatives Considered
No response
Additional Context
No response