mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[GH-ISSUE #6781] MODEL_FILTER_LIST not working as expected #53149
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 @FuzzyStatic on GitHub (Nov 7, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/6781
Bug Report
Installation Method
Through
docker compose:Environment
macOS Sonoma 14.6.1
Confirmation:
Expected Behavior:
I expected all 3 models to be in the users available models list.
Actual Behavior:
I only see
model-1in the list.Description
Bug Summary:
The list seems to ignore any models that do not begin with and end with a semicolon
;. If I add semicolons to the front and back then I see all three models in the list;MODEL_FILTER_LIST=";model-0:latest;model-1:latest;model-2:latest;"Reproduction Details
Steps to Reproduce:
Create different models and add them
MODEL_FILTER_LISTalong withENABLE_MODEL_FILTER=True. Log in as a basic user and notice that any models that are not surrounded with a semicolon;are not in the user's available models list at the top left.@parniantaghipour commented on GitHub (Nov 11, 2024):
I have tried with
docker run -d -p 3000:8080 \
--add-host=host.docker.internal:host-gateway
-v open-webui:/app/backend/data
-e MODEL_FILTER_ENABLED=true
-e MODEL_FILTER_LIST="llama3.2:latest;gemma2:latest;llava:latest;mistral:latest;mixtral:latest;"
--name open-webui
--restart always
ghcr.io/open-webui/open-webui:latest
and worked for me.
@FuzzyStatic commented on GitHub (Nov 12, 2024):
@parniantaghipour I do not expect to have to put a semicolon at the end of the list
llama3.2:latest;gemma2:latest;llava:latest;mistral:latest;mixtral:latest;. Can you remove the semicolonllama3.2:latest;gemma2:latest;llava:latest;mistral:latest;mixtral:latestand try again? Also, make sure you are looking at the list as a User and not as an Admin.Here is what I see with the following config:
As a user
As an Admin
@tjbck commented on GitHub (Nov 13, 2024):
MODEL_FILTER_LISTwill most likely be deprecated in favour of https://github.com/open-webui/open-webui/issues/2924.@parniantaghipour commented on GitHub (Nov 13, 2024):
I have used this:
docker run -d -p 3000:8080 \ --add-host=host.docker.internal:host-gateway \ -v open-webui:/app/backend/data \ --name open-webui \ --restart always \ -e ENABLE_MODEL_FILTER=True \ -e MODEL_FILTER_LIST="llama3.2:latest;gemma2:latest;llava:latest" \ ghcr.io/open-webui/open-webui:latestand This is my user:

and this is my admin:

I am not sure whu it is not the same with docker compose, however based on the code base it should work:
MODEL_FILTER_LIST = os.environ.get("MODEL_FILTER_LIST", "") MODEL_FILTER_LIST = PersistentConfig( "MODEL_FILTER_LIST", "model_filter.list", [model.strip() for model in MODEL_FILTER_LIST.split(";")], )@tjbck commented on GitHub (Nov 17, 2024):
Deprecated in 0.4 #2924