mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 11:28:35 -05:00
[GH-ISSUE #7816] Regular Users Cannot See Models #14898
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 @kkrick-sdsu on GitHub (Dec 12, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/7816
Bug Report
Installation Method
Running in Kubernetes with image
ghcr.io/open-webui/open-webui:git-bfdbb2d-cudaRunning Ollama side-by-side in the same namespace.
Environment
Open WebUI Version: v0.4.8
Ollama (if applicable): 0.5.1
Operating System: Ubuntu 22.04
Browser (if applicable): Edge 131.0.2903.86, Safari 18.1.1
Confirmation:
Expected Behavior:
Regular users should be able to see models in the New Chat > Select a model dropdown. Users should be able to see a list of models via API call to /api/models,
Actual Behavior:
Regular users see "No results found" in New Chat dropdown. Users get empty array for API call to /api/models.
Admin users can see all Ollama models. Users promoted to admin can see all models, but when put back to the user level can again see no models.
Description
Bug Summary:
It appears that regular users are not able to retrieve Ollama models. The API call returns an empty array.
Reproduction Details
Steps to Reproduce:
I would be happy to add a project contributor as a regular user to my instance to test this issue.
Logs and Screenshots
Docker Container Logs:
Open Web UI logs:
Ollama logs:
User call to /api/models, 200 response:
Additional Information
I am running this in Kubernetes with a separate Ollama instance side-by-side in the same namespace. Verified the connection and again an admin can see all of the models in the UI and via /api/models API. Everything was working about a week ago until upgrading to latest Open WebUI. Also attempted to create groups and grant all permissions, but this did not resolve the issue either. I am wondering if this is related to the groups/permissions change?
@tjbck commented on GitHub (Dec 12, 2024):
Yes, intended behaviour here. I'd strongly recommend you read all the changelogs before updating. Model permissions can be set individually. Hope that helps.
@kkrick-sdsu commented on GitHub (Dec 12, 2024):
Absolutely agree and would normally do that. Just had a deployment accidentally using the main tag and an unplanned restart caused the upgrade.
In case anyone else runs into the same, the solution was to add the new environment variable "BYPASS_MODEL_ACCESS_CONTROL=true".
Is there further documentation for this new env var? I didn't think this applied since I had not configured any access control rules. I checked the [Environment Variable Configuration][https://docs.openwebui.com/getting-started/advanced-topics/env-configuration#general) but it is not yet listed.
Anyways, thanks for the great work with this project!