[GH-ISSUE #6781] MODEL_FILTER_LIST not working as expected #14483

Closed
opened 2026-04-19 20:49:43 -05:00 by GiteaMirror · 5 comments
Owner

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:

  open-webui: 
    container_name: open-webui
    image: ghcr.io/open-webui/open-webui:latest
    environment:
      - OLLAMA_BASE_URLS=http://ollama:11434
      - DEFAULT_USER_ROLE=user
      - ENABLE_MODEL_FILTER=True 
      - MODEL_FILTER_LIST="model-0:latest;model-1:latest;model-2:latest"
    ports:
      - "8081:8080"

Environment

macOS Sonoma 14.6.1

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:

I expected all 3 models to be in the users available models list.

Actual Behavior:

I only see model-1 in 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_LIST along with ENABLE_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.

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`: ```yaml open-webui: container_name: open-webui image: ghcr.io/open-webui/open-webui:latest environment: - OLLAMA_BASE_URLS=http://ollama:11434 - DEFAULT_USER_ROLE=user - ENABLE_MODEL_FILTER=True - MODEL_FILTER_LIST="model-0:latest;model-1:latest;model-2:latest" ports: - "8081:8080" ``` ## Environment macOS Sonoma 14.6.1 **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: I expected all 3 models to be in the users available models list. ## Actual Behavior: I only see `model-1` in 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_LIST` along with `ENABLE_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.
Author
Owner

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

<!-- gh-comment-id:2469042003 --> @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.
Author
Owner

@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 semicolon llama3.2:latest;gemma2:latest;llava:latest;mistral:latest;mixtral:latest and 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:

NOTE: I am using custom Modelfiles

services:
  open-webui: 
    container_name: open-webui
    image: ghcr.io/open-webui/open-webui:latest # Does not download through VPN
    depends_on:
      ollama:
        condition: service_healthy
    environment:
      - OLLAMA_BASE_URLS=http://ollama:11434
      - DEFAULT_USER_ROLE=user
      - ENABLE_MODEL_FILTER=True 
      - MODEL_FILTER_LIST="test-0:latest;test-1:latest;test-2:latest;test-3:latest;test-4:latest"
    ports:
      - "8081:8080"

As a user

Screenshot 2024-11-12 at 6 36 34 PM

As an Admin

Screenshot 2024-11-12 at 6 36 54 PM
<!-- gh-comment-id:2471877251 --> @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 semicolon `llama3.2:latest;gemma2:latest;llava:latest;mistral:latest;mixtral:latest` and 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: > NOTE: I am using custom Modelfiles ```yaml services: open-webui: container_name: open-webui image: ghcr.io/open-webui/open-webui:latest # Does not download through VPN depends_on: ollama: condition: service_healthy environment: - OLLAMA_BASE_URLS=http://ollama:11434 - DEFAULT_USER_ROLE=user - ENABLE_MODEL_FILTER=True - MODEL_FILTER_LIST="test-0:latest;test-1:latest;test-2:latest;test-3:latest;test-4:latest" ports: - "8081:8080" ``` ### As a user <img width="529" alt="Screenshot 2024-11-12 at 6 36 34 PM" src="https://github.com/user-attachments/assets/262a31cb-523a-45e4-be18-871af1573158"> ### As an Admin <img width="528" alt="Screenshot 2024-11-12 at 6 36 54 PM" src="https://github.com/user-attachments/assets/cae2e935-ec24-4122-8647-122a52ed54e0">
Author
Owner

@tjbck commented on GitHub (Nov 13, 2024):

MODEL_FILTER_LIST will most likely be deprecated in favour of https://github.com/open-webui/open-webui/issues/2924.

<!-- gh-comment-id:2472333082 --> @tjbck commented on GitHub (Nov 13, 2024): `MODEL_FILTER_LIST` will most likely be deprecated in favour of https://github.com/open-webui/open-webui/issues/2924.
Author
Owner

@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:latest

and This is my user:
Screenshot 2024-11-12 at 8 19 06 PM

and this is my admin:
Screenshot 2024-11-12 at 8 19 19 PM

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(";")], )

<!-- gh-comment-id:2472348720 --> @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:latest ` and This is my user: <img width="1440" alt="Screenshot 2024-11-12 at 8 19 06 PM" src="https://github.com/user-attachments/assets/b262ffa4-3cb7-4c21-81b2-75fafd2e0ab7"> and this is my admin: <img width="1440" alt="Screenshot 2024-11-12 at 8 19 19 PM" src="https://github.com/user-attachments/assets/d6f9e981-cc81-4a0b-a976-60756d4fab3d"> 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(";")], )`
Author
Owner

@tjbck commented on GitHub (Nov 17, 2024):

Deprecated in 0.4 #2924

<!-- gh-comment-id:2481186896 --> @tjbck commented on GitHub (Nov 17, 2024): Deprecated in 0.4 #2924
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#14483