mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 14:39:31 -05:00
[GH-ISSUE #7138] Disabling OpenAI API connection results in API errors such as "invalid model ID" for other connections depending on order in which the connections were added. #134351
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 @returnofblank on GitHub (Nov 21, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/7138
Bug Report
Installation Method
Installed with Docker Compose on Linux kernel 6.11.5-zen1
Environment
Open WebUI Version: v0.4.2
Operating System: NixOS 25.05 (Warbler)
Browser (if applicable): Firefox 132.0.2
Confirmation:
Expected Behavior:
Disabling OpenAI API connections should not interfere with other connections.
If I add an OpenAI connection and then an Openrouter connection, disabling the former should have no effect on the latter.
Actual Behavior:
Disabling a connection interferes with the other, depending on the order of a connections.
A connection placed at the top of the list will interfere with connections below it if disabled. This applies even if the connection itself is valid, still resulting in an inability to use any connection below it.
As an example, I have two OpenAI API connections: OpenAI and Openrouter. OpenAI was added first so it is at the top of the list, while OpenRouter is below it. Disabling OpenAI results in the invalid model ID error for Openrouter when chatting with any model.
Oddly enough, having OpenAI as a connection below a disabled Openrouter connection does not lead to an error. But having a disabled invalid URL as a connection at the top of the list does cause issues. I don't have the time to really look into that, but I will update if I see anything else.
Description
Bug Summary:
Disabled connections can cause issues for other connections, somewhat dependent on the order in which they were added.
Reproduction Details
Steps to Reproduce:
Logs and Screenshots
Above is disabling OpenAI connection with an Openrouter connection below it (and speaking to an Openrouter connection.)
@isikepalaku commented on GitHub (Nov 21, 2024):
erorr
@tjbck commented on GitHub (Nov 22, 2024):
Pushed a potential fix to dev, testing wanted here!