[GH-ISSUE #9577] OpenRouter model variations can't be disabled #102561

Closed
opened 2026-05-17 23:53:13 -05:00 by GiteaMirror · 15 comments
Owner

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:

  • I have read and followed all the instructions provided in the README.md.
  • I am on the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.
  • I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below.

Expected Behavior:

Models are disabled like expected

Actual Behavior:

Image
Bottom of model selection

There are models that are disabled, such as OpenChat 3.5 7B

Image

Image

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.

Image

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:** - [x] I have read and followed all the instructions provided in the README.md. - [x] I am on the latest version of both Open WebUI and Ollama. - [x] I have included the browser console logs. - [x] I have included the Docker container logs. - [x] I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below. ## Expected Behavior: Models are disabled like expected ## Actual Behavior: ![Image](https://github.com/user-attachments/assets/9cd91403-8a66-434a-87c7-5155136614c4) Bottom of model selection There are models that are disabled, such as OpenChat 3.5 7B ![Image](https://github.com/user-attachments/assets/90aa2f0d-1c07-4cf4-87d3-6ae90206690f) ![Image](https://github.com/user-attachments/assets/f1f51ef2-4ecf-43e5-8cee-d0002ce8636f) ## 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. ![Image](https://github.com/user-attachments/assets/58610866-d6b3-4a1b-8ab4-48c0c6192fd9)
Author
Owner

@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_CONTROL and 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.

<!-- gh-comment-id:2643075647 --> @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_CONTROL` and 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.
Author
Owner

@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?

<!-- gh-comment-id:2643783326 --> @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?
Author
Owner

@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:
Image

<!-- gh-comment-id:2644113030 --> @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: ![Image](https://github.com/user-attachments/assets/bbe88dc8-fd4c-4d6d-8261-080f3b6cc5c6)
Author
Owner

@silentoplayz commented on GitHub (Feb 9, 2025):

Are you certain you don't have any custom models created in the Models section of the Workspace and enabled that happens to be named the same as base models that you have disabled in the Models section of the admin panel settings?

<!-- gh-comment-id:2646548028 --> @silentoplayz commented on GitHub (Feb 9, 2025): Are you certain you don't have any custom models created in the `Models` section of the `Workspace` and enabled that happens to be named the same as base models that you have disabled in the `Models` section of the admin panel settings?
Author
Owner

@AdamB2023 commented on GitHub (Feb 9, 2025):

We're using the default setup after deployment, without any additional models.

Image

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

<!-- gh-comment-id:2646553178 --> @AdamB2023 commented on GitHub (Feb 9, 2025): We're using the default setup after deployment, without any additional models. ![Image](https://github.com/user-attachments/assets/845f3f8b-b4a9-495e-9a17-d8248714ec7f) 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
Author
Owner

@tjbck commented on GitHub (Feb 9, 2025):

@AdamB2023 did you set BYPASS_MODEL_ACCESS_CONTROL to true?

<!-- gh-comment-id:2646603246 --> @tjbck commented on GitHub (Feb 9, 2025): @AdamB2023 did you set `BYPASS_MODEL_ACCESS_CONTROL` to true?
Author
Owner

@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.

<!-- gh-comment-id:2646621161 --> @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.
Author
Owner

@DuckyBlender commented on GitHub (Feb 9, 2025):

The current minimal reproducible example is

  1. docker run -d -p 3000:8080 -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:main
  2. Add OpenRouter to OpenAI compatible endpoints
  3. Disable all 224 models (which is kinda painful this should be also improved)
  4. Some models are still enabled
<!-- gh-comment-id:2646622477 --> @DuckyBlender commented on GitHub (Feb 9, 2025): The current minimal reproducible example is 1. `docker run -d -p 3000:8080 -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:main` 2. Add OpenRouter to OpenAI compatible endpoints 3. Disable all 224 models (which is kinda painful this should be also improved) 4. Some models are still enabled
Author
Owner

@DuckyBlender commented on GitHub (Feb 9, 2025):

These are all of the problematic models
Image

<!-- gh-comment-id:2646623910 --> @DuckyBlender commented on GitHub (Feb 9, 2025): These are all of the problematic models ![Image](https://github.com/user-attachments/assets/3bc04030-3093-4569-86c9-a0b01d28ea37)
Author
Owner

@DuckyBlender commented on GitHub (Feb 9, 2025):

Related to #7912

<!-- gh-comment-id:2646624440 --> @DuckyBlender commented on GitHub (Feb 9, 2025): Related to #7912
Author
Owner

@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.

<!-- gh-comment-id:2646992221 --> @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.
Author
Owner

@AdamB2023 commented on GitHub (Feb 10, 2025):

@matanrom How you manually added in the Connections, if you can only setup the API Keys there?

Image

<!-- gh-comment-id:2647059585 --> @AdamB2023 commented on GitHub (Feb 10, 2025): @matanrom How you manually added in the `Connections`, if you can only setup the API Keys there? ![Image](https://github.com/user-attachments/assets/ba94138b-2280-4ee6-bedc-660edc00f746)
Author
Owner

@matanrom commented on GitHub (Feb 10, 2025):

@matanrom How you manually added in the Connections, if you can only setup the API Keys there?

Image

You should have a gear icon next to the connection where you can add models by id.

Image

<!-- gh-comment-id:2647082456 --> @matanrom commented on GitHub (Feb 10, 2025): > [@matanrom](https://github.com/matanrom) How you manually added in the `Connections`, if you can only setup the API Keys there? > > ![Image](https://github.com/user-attachments/assets/ba94138b-2280-4ee6-bedc-660edc00f746) You should have a gear icon next to the connection where you can add models by id. ![Image](https://github.com/user-attachments/assets/bcbdc86d-7b65-49d0-bbe4-583490605a10)
Author
Owner

@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.

Image

<!-- gh-comment-id:2649046768 --> @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. ![Image](https://github.com/user-attachments/assets/49669906-e029-498b-bff3-e266254bd7a0)
Author
Owner

@muramasatheninja commented on GitHub (Feb 16, 2025):

@DuckyBlender FYI, instead of manually disabling all the models, what you should be doing is whitelisting the models via connection settings.

Image

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.

<!-- gh-comment-id:2661355870 --> @muramasatheninja commented on GitHub (Feb 16, 2025): > [@DuckyBlender](https://github.com/DuckyBlender) FYI, instead of manually disabling all the models, what you should be doing is whitelisting the models via connection settings. > > ![Image](https://github.com/user-attachments/assets/49669906-e029-498b-bff3-e266254bd7a0) 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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#102561