mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-15 21:19:39 -05:00
[GH-ISSUE #9577] OpenRouter model variations can't be disabled #54232
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 @DuckyBlender on GitHub (Feb 7, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/9577
Installation Method
Docker
Environment
Open WebUI Version: v0.5.10
Ollama (if applicable): None
Operating System: Windows 10 WSL on Hyper-V
Browser (if applicable): Latest chrome & firefox
Confirmation:
Expected Behavior:
Models are disabled like expected
Actual Behavior:
Bottom of model selection
There are models that are disabled, such as OpenChat 3.5 7B
Description
Bug Summary:
Imported OpenRouter & OpenAI (for o3-mini), disabled most of the models from the model settings and made the rest public. Some disabled and private models are still present.
Reproduction Details
Steps to Reproduce:
Setup Docker container, import OpenRouter and disable models.
Logs and Screenshots
Browser Console Logs:
None
Docker Container Logs:
None
Additional Information
Tried with BYPASS_MODEL_ACCESS_CONTROL set to true and false, tried modifying CSV, tried resetting model, tried restarting docker container. Nothing seems to change this behaviour. In the model ordering section, this is also present.
@AdamB2023 commented on GitHub (Feb 7, 2025):
We're encountering the same issue in a nearly identical setup (Docker on Windows Server 2022). Like DuckyBlender, we've tried toggling
BYPASS_MODEL_ACCESS_CONTROLand editing the CSV file, but certain models still show up as if they're enabled. We've also confirmed that we've properly restarted our containers.It seems that no matter how we configure model settings, some models remain visible. If there's any additional information we can provide or tests we can run to help diagnose the problem, please let us know.
@tjbck commented on GitHub (Feb 7, 2025):
We'll definitely need more details to reproduce this issue. I'm guessing this is caused by our 3 second cache for the model list, have you tried refreshing the webui from the browser?
@AdamB2023 commented on GitHub (Feb 7, 2025):
Yes, we tried. Disabled model persist even after 20 seconds, refreshed using Ctrl+F5 in Chrome.
https://github.com/user-attachments/assets/c43f1786-7e71-4c63-8ec8-8e6bba966f0a
It's also visible in Interface > External Models:

@silentoplayz commented on GitHub (Feb 9, 2025):
Are you certain you don't have any custom models created in the
Modelssection of theWorkspaceand enabled that happens to be named the same as base models that you have disabled in theModelssection of the admin panel settings?@AdamB2023 commented on GitHub (Feb 9, 2025):
We're using the default setup after deployment, without any additional models.
On the video you can see that only one model is enabled but multiple is visible on the list.
https://github.com/user-attachments/assets/4311f53f-2b5b-42d6-ad10-52e591a3379c
@tjbck commented on GitHub (Feb 9, 2025):
@AdamB2023 did you set
BYPASS_MODEL_ACCESS_CONTROLto true?@DuckyBlender commented on GitHub (Feb 9, 2025):
I've just redid the entire config on a fresh Debian 12 machine, same issue. I think the issue is with the OpenRouter integration, some models have multiple variations, like :free and :beta. Most likely one of the models is disabled but there is a bug where the variation isn't disabled correctly. The models seen in @AdamB2023 's are the same models that cause issue for me.
@DuckyBlender commented on GitHub (Feb 9, 2025):
The current minimal reproducible example is
docker run -d -p 3000:8080 -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:main@DuckyBlender commented on GitHub (Feb 9, 2025):
These are all of the problematic models

@DuckyBlender commented on GitHub (Feb 9, 2025):
Related to #7912
@matanrom commented on GitHub (Feb 10, 2025):
Having the same issue,
As a workaround I went go to connection settings and manually added the models I want.
@AdamB2023 commented on GitHub (Feb 10, 2025):
@matanrom How you manually added in the
Connections, if you can only setup the API Keys there?@matanrom commented on GitHub (Feb 10, 2025):
You should have a gear icon next to the connection where you can add models by id.
@tjbck commented on GitHub (Feb 10, 2025):
@DuckyBlender FYI, instead of manually disabling all the models, what you should be doing is whitelisting the models via connection settings.
@muramasatheninja commented on GitHub (Feb 16, 2025):
So I'm new to Open-WebUI and am still experimenting with various models. I have openrouter and Nebius and it added a lot of models. I still want to see the list because I'm trying new models and having them all in a model list from various providers would be useful but would prefer not to see them all when I'm actually trying to chat. One Idea I had is to add an option "Disable all models for this connection" That way only the models I actually want to use could be enabled, but I can still benefit from the list of all models from all of the providers without having to dig through each providers website to see the models or disabling them one by one.
Another option would be to have an option to exempt admins from having to see all models.
EDIT: Another option I would love to see on the above screen is an option to add the models to a group based on the connection. I could create a group 'OpenRouter' or 'Nebius' and set that as the group upon connection.