mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 11:28:35 -05:00
[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
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 @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:
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:
29a2719595/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.