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.
@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-webuiimage:ghcr.io/open-webui/open-webui:latest# Does not download through VPNdepends_on:ollama:condition:service_healthyenvironment:- 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
As an Admin
<!-- 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">
<!-- 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.
@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:
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(";")], )
<!-- 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(";")],
)`
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 @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