[GH-ISSUE #7683] v0.4.8: users can see the models but can't use them ("model not found") with BYPASS_MODEL_ACCESS_CONTROL=True #53509

Closed
opened 2026-05-05 14:50:55 -05:00 by GiteaMirror · 5 comments
Owner

Originally created by @hrz6976 on GitHub (Dec 7, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/7683

Installation Method

Docker

Environment

  • Open WebUI Version: v0.4.8

  • Ollama (if applicable): Not Applicable

  • Operating System: Ubuntu 24.04

  • Browser (if applicable): Not Applicable

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:

Regular users can see and use private models when set BYPASS_MODEL_ACCESS_CONTROL=True.

Actual Behavior:

Users can select all models but can't use them. Open-webui replies "404 model not found" to all requests.

Reproduction Details

Steps to Reproduce:

  • Upgrade to v0.4.8 from 0.3.x (in my case, v0.3.6)
  • Set BYPASSS_MODEL_ACCES_CONTROL=True
  • Login as a user
  • Select a random model, send an arbitrary string, and wait for response

Logs and Screenshots

image

Additional Information

Probably from here: 29a2719595/backend/open_webui/main.py (L1282-L1301)

Should bypass_filter be True when BYPASS_MODEL_ACCESS_CONTROL is True?

Originally created by @hrz6976 on GitHub (Dec 7, 2024). Original GitHub issue: https://github.com/open-webui/open-webui/issues/7683 ## Installation Method Docker ## Environment - **Open WebUI Version:** v0.4.8 - **Ollama (if applicable):** Not Applicable - **Operating System:** Ubuntu 24.04 - **Browser (if applicable):** Not Applicable **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. - [ ] I have included the browser console logs. - [ ] 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: Regular users can see and use private models when set `BYPASS_MODEL_ACCESS_CONTROL=True`. ## Actual Behavior: Users can select all models but can't use them. Open-webui replies "404 model not found" to all requests. ## Reproduction Details **Steps to Reproduce:** - Upgrade to v0.4.8 from 0.3.x (in my case, v0.3.6) - Set `BYPASSS_MODEL_ACCES_CONTROL=True` - Login as a user - Select a random model, send an arbitrary string, and wait for response ## Logs and Screenshots ![image](https://github.com/user-attachments/assets/91793201-ecb8-4253-8d9e-b1c7de60958a) ## Additional Information Probably from here: https://github.com/open-webui/open-webui/blob/29a271959556743e6deb4d55a5a982983335d7ab/backend/open_webui/main.py#L1282-L1301 Should `bypass_filter` be True when `BYPASS_MODEL_ACCESS_CONTROL` is True?
Author
Owner

@derek-assurity commented on GitHub (Dec 8, 2024):

Getting the same error.

<!-- gh-comment-id:2526425339 --> @derek-assurity commented on GitHub (Dec 8, 2024): Getting the same error.
Author
Owner

@tjbck commented on GitHub (Dec 10, 2024):

Should be fixed on dev, testing wanted here!

<!-- gh-comment-id:2530685896 --> @tjbck commented on GitHub (Dec 10, 2024): Should be fixed on dev, testing wanted here!
Author
Owner

@derek-assurity commented on GitHub (Dec 10, 2024):

@tjbck Can confirm that the model selection is being controlled by the env var and that the queries are working.

With
docker run -d -p 3000:8080 -v open-webui:/app/backend/data -e BYPASS_MODEL_ACCESS_CONTROL=false --name open-webui ghcr.io/open-webui/open-webui:dev
image
and with
docker run -d -p 3000:8080 -v open-webui:/app/backend/data -e BYPASS_MODEL_ACCESS_CONTROL=true --name open-webui ghcr.io/open-webui/open-webui:dev
image

<!-- gh-comment-id:2530942469 --> @derek-assurity commented on GitHub (Dec 10, 2024): @tjbck Can confirm that the model selection is being controlled by the env var and that the queries are working. With `docker run -d -p 3000:8080 -v open-webui:/app/backend/data -e BYPASS_MODEL_ACCESS_CONTROL=false --name open-webui ghcr.io/open-webui/open-webui:dev` ![image](https://github.com/user-attachments/assets/33e3d139-ac35-4832-9964-e2e17f2b494c) and with `docker run -d -p 3000:8080 -v open-webui:/app/backend/data -e BYPASS_MODEL_ACCESS_CONTROL=true --name open-webui ghcr.io/open-webui/open-webui:dev` ![image](https://github.com/user-attachments/assets/41ca6858-8db8-4b47-b6df-a4f8cbb2a6f7)
Author
Owner

@hrz6976 commented on GitHub (Dec 11, 2024):

Confirm it is working. Thanks for the quick fix!
image

<!-- gh-comment-id:2533266305 --> @hrz6976 commented on GitHub (Dec 11, 2024): Confirm it is working. Thanks for the quick fix! <img width="1098" alt="image" src="https://github.com/user-attachments/assets/780369a5-6107-4ccb-a6c6-ad2b6877597a">
Author
Owner

@stutteringp0et commented on GitHub (Dec 13, 2024):

I was able to access models as a regular user by setting the model visibility from Private to Public in settings. By default, models are private.

Presumably, creating a group and assigning models to it and then assigning users to those groups would do the same thing - but I didn't try that yet.

<!-- gh-comment-id:2540657910 --> @stutteringp0et commented on GitHub (Dec 13, 2024): I was able to access models as a regular user by setting the model visibility from Private to Public in settings. By default, models are private. Presumably, creating a group and assigning models to it and then assigning users to those groups would do the same thing - but I didn't try that yet.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#53509