mirror of
https://github.com/open-webui/docs
synced 2025-05-19 18:58:41 +00:00
Add Model Filter Tutorial
This commit is contained in:
parent
cc9ee5bb2b
commit
4c121a23de
27
docs/tutorial/whitelist.md
Normal file
27
docs/tutorial/whitelist.md
Normal file
@ -0,0 +1,27 @@
|
||||
---
|
||||
sidebar_position: 5
|
||||
title: "Model Whitelisting"
|
||||
---
|
||||
|
||||
# Model Whitelisting
|
||||
|
||||
Open WebUI allows you to filter specific models for use in your instance. This feature is especially useful for administrators who want to control which models are available to users. Filtering can be done through the WebUI or by adding environment variables to the backend.
|
||||
|
||||
## Filtering via WebUI
|
||||
|
||||

|
||||
|
||||
1. Go to **Admin Panel > Admin Settings**.
|
||||
2. In the **Manage Models** section, you can enable or disable the feature, and add or remove models from the whitelist.
|
||||
3. Click **Save** to apply your changes.
|
||||
|
||||
## Filtering via Environment Variables
|
||||
|
||||
You can also whitelist models by adding environment variables to the backend. This method is useful for automated deployments and can be done by adding the following environment variables to your `docker run` command:
|
||||
|
||||
```bash
|
||||
-e MODEL_FILTER_ENABLED=True \
|
||||
-e MODEL_FILTER_LIST="llama2:13b;mistral:latest;gpt-3.5-turbo" \
|
||||
```
|
||||
|
||||
In this example, the `MODEL_FILTER_ENABLED` variable is set to `True` to enable the feature, and the `MODEL_FILTER_LIST` variable lists the models to be whitelisted. The format for the `MODEL_FILTER_LIST` variable is `model_name:version;model_name:version;...`.
|
BIN
static/img/tutorial_model_filter.png
Normal file
BIN
static/img/tutorial_model_filter.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 101 KiB |
Loading…
Reference in New Issue
Block a user