Should bypass_filter be True when BYPASS_MODEL_ACCESS_CONTROL is True?
Originally created by @hrz6976 on GitHub (Dec 7, 2024).
## 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

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

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`

@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">
@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.
@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.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @hrz6976 on GitHub (Dec 7, 2024).
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:
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:
BYPASSS_MODEL_ACCES_CONTROL=TrueLogs and Screenshots
Additional Information
Probably from here: https://github.com/open-webui/open-webui/blob/29a271959556743e6deb4d55a5a982983335d7ab/backend/open_webui/main.py#L1282-L1301
Should
bypass_filterbe True whenBYPASS_MODEL_ACCESS_CONTROLis True?@derek-assurity commented on GitHub (Dec 8, 2024):
Getting the same error.
@tjbck commented on GitHub (Dec 10, 2024):
Should be fixed on dev, testing wanted here!
@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:devand 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@hrz6976 commented on GitHub (Dec 11, 2024):
Confirm it is working. Thanks for the quick fix!

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