Update env-configuration.md

This commit is contained in:
silentoplayz 2024-08-13 17:14:37 +00:00 committed by GitHub
parent 44eb5806cc
commit 0ee055b30e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,13 +1,18 @@
# Environment Variable Configuration # Environment Variable Configuration
## Overview
Open WebUI provides a range of environment variables that allow you to customize and configure various aspects of the application. This page serves as a comprehensive reference for all available environment variables, including their types, default values, and descriptions.
## App/Backend ## App/Backend
Here is a list of supported environment variables used by `backend/config.py` intended to provide Open WebUI startup configurability. See also the [logging environment variables](/getting-started/logging#appbackend). There may be different defaults depending if launched directly, or via Docker. The following environment variables are used by `backend/config.py` to provide Open WebUI startup configurability. Please note that some variables may have different default values depending on whether you're running Open WebUI directly or via Docker. For more information on logging environment variables, see our [logging documentation](/getting-started/logging#appbackend).
### General ### General
#### `ENV` #### `ENV`
- Type: `str` (enum: `dev`, `prod`)
- Options: - Options:
- `dev` - Enables the FastAPI API docs on `/docs` - `dev` - Enables the FastAPI API docs on `/docs`
- `prod` - Automatically configures several environment variables - `prod` - Automatically configures several environment variables
@ -18,105 +23,151 @@ Here is a list of supported environment variables used by `backend/config.py` in
#### `WEBUI_AUTH` #### `WEBUI_AUTH`
- Type: `bool`
- Default Setting: `True` - Default Setting: `True`
- Description: This setting enables or disables authentication. If set to False, authentication is disabled. However, it's important to note that turning off authentication is only possible for fresh installations without any existing users. If there are already users registered, you cannot disable authentication directly. Ensure that no users are present in the database if you intend to turn off `WEBUI_AUTH`. - Description: This setting enables or disables authentication.
:::danger
If set to `False`, authentication will be disabled for your Open WebUI instance. However,
it's important to note that turning off authentication is only possible for fresh installations without any existing users.
If there are already users registered, you cannot disable authentication directly. Ensure that no users are present in the database,
if you intend to turn off `WEBUI_AUTH`.
:::
#### `WEBUI_NAME` #### `WEBUI_NAME`
- Type: `str`
- Default: `Open WebUI` - Default: `Open WebUI`
- Description: Sets the main WebUI name. Appends `(Open WebUI)` if overridden. - Description: Sets the main WebUI name. Appends `(Open WebUI)` if overridden.
#### `WEBUI_URL` #### `WEBUI_URL`
- Type: `str`
- Default: `http://localhost:3000` - Default: `http://localhost:3000`
- Description: Specifies the URL where the Open WebUI is reachable. Currently used for search engine support. - Description: Specifies the URL where the Open WebUI is reachable. Currently used for search engine support.
#### `AIOHTTP_CLIENT_TIMEOUT` #### `AIOHTTP_CLIENT_TIMEOUT`
- Type: `int`
- Default: `300` - Default: `300`
- Description: Specifies the timeout duration in seconds for the aiohttp client. This is the maximum amount of time the client will wait for a response before timing out. If set to an empty string (''), the timeout will be set to None, effectively disabling the timeout and allowing the client to wait indefinitely. - Description: Specifies the timeout duration in seconds for the aiohttp client.
:::info
This is the maximum amount of time the client will wait for a response before timing out. If set to an empty string (' '),
the timeout will be set to `None`, effectively disabling the timeout and allowing the client to wait indefinitely.
:::
#### `DATA_DIR` #### `DATA_DIR`
- Type: `str`
- Default: `./data` - Default: `./data`
- Description: Specifies the base directory for data storage, including uploads, cache, vector database, etc. - Description: Specifies the base directory for data storage, including uploads, cache, vector database, etc.
#### `FRONTEND_BUILD_DIR` #### `FRONTEND_BUILD_DIR`
- Type: `str`
- Default: `../build` - Default: `../build`
- Description: Specifies the location of the built frontend files. - Description: Specifies the location of the built frontend files.
#### `STATIC_DIR` #### `STATIC_DIR`
- Type: `str`
- Default: `./static` - Default: `./static`
- Description: Specifies the directory for static files, such as the favicon. - Description: Specifies the directory for static files, such as the favicon.
#### `CUSTOM_NAME` #### `CUSTOM_NAME`
- Type: `str`
- Description: Sets `WEBUI_NAME` but polls _api.openwebui.com_ for metadata. - Description: Sets `WEBUI_NAME` but polls _api.openwebui.com_ for metadata.
#### `ENABLE_SIGNUP` #### `ENABLE_SIGNUP`
- Type: `bool`
- Default: `True` - Default: `True`
- Description: Toggles user account creation. - Description: Toggles user account creation.
#### `ENABLE_LOGIN_FORM` #### `ENABLE_LOGIN_FORM`
- Type: `bool`
- Default: `True` - Default: `True`
- Description: Toggles email, password, sign in and "or" (only when `ENABLE_OAUTH_SIGNUP` is set to true) elements. - Description: Toggles email, password, sign in and "or" (only when `ENABLE_OAUTH_SIGNUP` is set to true) elements.
- **Important Note:** This should **only** ever be set to `False` when [ENABLE_OAUTH_SIGNUP](https://docs.openwebui.com/getting-started/env-configuration#enable_oauth_signup) is also being used and set to `True`. Failure to do so will result in the inability to login.
:::danger
This should **only** ever be set to `False` when [ENABLE_OAUTH_SIGNUP](https://docs.openwebui.com/getting-started/env-configuration#enable_oauth_signup)
is also being used and set to `True`. Failure to do so will result in the inability to login.
:::
#### `ENABLE_RAG_WEB_LOADER_SSL_VERIFICATION` #### `ENABLE_RAG_WEB_LOADER_SSL_VERIFICATION`
- Type: `bool`
- Default: `True` - Default: `True`
- Description: Bypass SSL Verification for RAG on Websites. - Description: Bypass SSL Verification for RAG on Websites.
#### `DEFAULT_MODELS` #### `DEFAULT_MODELS`
- Type: `str`
- Description: Sets a default Language Model. - Description: Sets a default Language Model.
#### `DEFAULT_USER_ROLE` #### `DEFAULT_USER_ROLE`
- Options: `pending`, `user`, `admin` - Type: `str` (enum: `pending`, `user`, `admin`)
- Options:
- `pending` - New users are pending until their accounts are manually activated by an admin.
- `user` - New users are automatically activated with regular user permissions.
- `admin` - New users are automatically activated with administrator permissions.
- Default: `pending` - Default: `pending`
- Description: Sets the default role assigned to new users. - Description: Sets the default role assigned to new users.
#### `USER_PERMISSIONS_CHAT_DELETION` #### `USER_PERMISSIONS_CHAT_DELETION`
- Type: `bool`
- Default: `True` - Default: `True`
- Description: Toggles user permission to delete chats. - Description: Toggles user permission to delete chats.
#### `ENABLE_MODEL_FILTER` #### `ENABLE_MODEL_FILTER`
- Type: `bool`
- Default: `False` - Default: `False`
- Description: Toggles Language Model filtering. - Description: Toggles Language Model filtering.
#### `MODEL_FILTER_LIST` #### `MODEL_FILTER_LIST`
- Type: `str`
- Description: Sets the Language Model filter list, semicolon-separated - Description: Sets the Language Model filter list, semicolon-separated
- Example: `llama3:instruct;gemma:instruct` - Example: `llama3:instruct;gemma:instruct`
#### `WEBHOOK_URL` #### `WEBHOOK_URL`
- Type: `str`
- Description: Sets a webhook for integration with Slack/Microsoft Teams. - Description: Sets a webhook for integration with Slack/Microsoft Teams.
#### `ENABLE_ADMIN_EXPORT` #### `ENABLE_ADMIN_EXPORT`
- Type: `bool`
- Default: `True` - Default: `True`
- Description: Controls whether admin users can export data. - Description: Controls whether admin users can export data.
#### `ENABLE_COMMUNITY_SHARING` #### `ENABLE_COMMUNITY_SHARING`
- Type: `bool`
- Default: `True` - Default: `True`
- Description: Controls whether users are shown the share to community button. - Description: Controls whether users are shown the share to community button.
#### `WEBUI_BUILD_HASH` #### `WEBUI_BUILD_HASH`
- Type: `str`
- Default: `dev-build` - Default: `dev-build`
- Description: Used for identifying the Git SHA of the build for releases. - Description: Used for identifying the Git SHA of the build for releases.
#### `WEBUI_BANNERS` #### `WEBUI_BANNERS`
- Type: `list` of `dict`
- Default: `[]` - Default: `[]`
- Description: List of banners to show to users. Format of banners are: - Description: List of banners to show to users. Format of banners are:
@ -133,80 +184,107 @@ Here is a list of supported environment variables used by `backend/config.py` in
#### `WEBUI_AUTH_TRUSTED_EMAIL_HEADER` #### `WEBUI_AUTH_TRUSTED_EMAIL_HEADER`
- Type: `str`
- Description: Defines the trusted request header for authentication. See [SSO docs](/tutorial/sso). - Description: Defines the trusted request header for authentication. See [SSO docs](/tutorial/sso).
#### `WEBUI_AUTH_TRUSTED_NAME_HEADER` #### `WEBUI_AUTH_TRUSTED_NAME_HEADER`
- Type: `str`
- Description: Defines the trusted request header for the username of anyone registering with the `WEBUI_AUTH_TRUSTED_EMAIL_HEADER` header. See [SSO docs](/tutorial/sso). - Description: Defines the trusted request header for the username of anyone registering with the `WEBUI_AUTH_TRUSTED_EMAIL_HEADER` header. See [SSO docs](/tutorial/sso).
#### `WEBUI_SECRET_KEY` #### `WEBUI_SECRET_KEY`
- Type: `str`
- Default: `t0p-s3cr3t` - Default: `t0p-s3cr3t`
- Docker Default: Randomly generated on first start - Docker Default: Randomly generated on first start
- Description: Overrides the randomly generated string used for JSON Web Token. - Description: Overrides the randomly generated string used for JSON Web Token.
#### `JWT_EXPIRES_IN` #### `JWT_EXPIRES_IN`
- Type: `int`
- Default: `-1` - Default: `-1`
- Description: Sets the JWT expiration time in seconds. A value of -1 disables expiration. - Description: Sets the JWT expiration time in seconds. A value of -1 disables expiration.
#### `USE_CUDA_DOCKER` #### `USE_CUDA_DOCKER`
- Type: `bool`
- Default: `False` - Default: `False`
- Description: Builds the Docker image with NVIDIA CUDA support. Enables GPU acceleration for local Whisper and embeddings. - Description: Builds the Docker image with NVIDIA CUDA support. Enables GPU acceleration for local Whisper and embeddings.
#### `DATABASE_URL` #### `DATABASE_URL`
- Type: `str`
- Default: `sqlite:///${DATA_DIR}/webui.db` - Default: `sqlite:///${DATA_DIR}/webui.db`
- Description: Specifies the database URL to connect to. Supports SQLite and Postgres. Changing the URL does not migrate data between databases. Documentation on URL scheme available [here](https://docs.peewee-orm.com/en/latest/peewee/playhouse.html#db-url). - Description: Specifies the database URL to connect to.
:::info
Supports SQLite and Postgres. Changing the URL does not migrate data between databases.
Documentation on URL scheme available [here](https://docs.peewee-orm.com/en/latest/peewee/playhouse.html#db-url).
:::
#### `PORT` #### `PORT`
- Type: `int`
- Default: `8080` - Default: `8080`
- Description: Sets the port to run Open WebUI from. - Description: Sets the port to run Open WebUI from.
#### `RESET_CONFIG_ON_START` #### `RESET_CONFIG_ON_START`
- Type: `bool`
- Default: `False` - Default: `False`
- Description: Resets the `config.json` file on startup. - Description: Resets the `config.json` file on startup.
#### `SHOW_ADMIN_DETAILS` #### `SHOW_ADMIN_DETAILS`
- Type: `bool`
- Default: `True` - Default: `True`
- Description: Toggles whether to show admin user details in the interface. - Description: Toggles whether to show admin user details in the interface.
#### `ADMIN_EMAIL` #### `ADMIN_EMAIL`
- Type: `str`
- Description: Sets the admin email shown by `SHOW_ADMIN_DETAILS` - Description: Sets the admin email shown by `SHOW_ADMIN_DETAILS`
#### `SAFE_MODE` #### `SAFE_MODE`
- Type: `bool`
- Default: `false` - Default: `false`
- Description: Enables safe mode, which disables potentially unsafe features. - Description: Enables safe mode, which disables potentially unsafe features.
#### `WEBUI_SESSION_COOKIE_SAME_SITE` #### `WEBUI_SESSION_COOKIE_SAME_SITE`
- Type: `str` (enum: `lax`, `strict`, `none`)
- Options:
- `lax` - Sets the `SameSite` attribute to lax, allowing session cookies to be sent with requests initiated by third-party websites.
- `strict` - Sets the `SameSite` attribute to strict, blocking session cookies from being sent with requests initiated by third-party websites.
- `none` - Sets the `SameSite` attribute to none, allowing session cookies to be sent with requests initiated by third-party websites, but only over HTTPS.
- Default: `lax` - Default: `lax`
- Description: Sets the `SameSite` attribute for session cookies. - Description: Sets the `SameSite` attribute for session cookies.
#### `WEBUI_SESSION_COOKIE_SECURE` #### `WEBUI_SESSION_COOKIE_SECURE`
- Type: `bool`
- Default: `false` - Default: `false`
- Description: Sets the `Secure` attribute for session cookies if set to `true`. - Description: Sets the `Secure` attribute for session cookies if set to `true`.
#### `AIOHTTP_CLIENT_TIMEOUT` #### `AIOHTTP_CLIENT_TIMEOUT`
- Type: `int`
- Description: Sets the timeout in seconds for internal aiohttp connections. This impacts things such as connections to Ollama and OpenAI endpoints. - Description: Sets the timeout in seconds for internal aiohttp connections. This impacts things such as connections to Ollama and OpenAI endpoints.
### Ollama ### Ollama
#### `ENABLE_OLLAMA_API` #### `ENABLE_OLLAMA_API`
- Type: `bool`
- Default: `true` - Default: `true`
- Description: Enables the use of Ollama APIs. - Description: Enables the use of Ollama APIs.
#### `OLLAMA_BASE_URL` #### `OLLAMA_BASE_URL`
- Type: `str`
- Default: `http://localhost:11434` - Default: `http://localhost:11434`
- Docker Default: - Docker Default:
- If `K8S_FLAG` is set: `http://ollama-service.open-webui.svc.cluster.local:11434` - If `K8S_FLAG` is set: `http://ollama-service.open-webui.svc.cluster.local:11434`
@ -216,19 +294,23 @@ Here is a list of supported environment variables used by `backend/config.py` in
#### `OLLAMA_BASE_URLS` #### `OLLAMA_BASE_URLS`
- Type: `str`
- Description: Configures load-balanced Ollama backend hosts, separated by `;`. See [`OLLAMA_BASE_URL`](#ollama_base_url). Takes precedence over[`OLLAMA_BASE_URL`](#ollama_base_url). - Description: Configures load-balanced Ollama backend hosts, separated by `;`. See [`OLLAMA_BASE_URL`](#ollama_base_url). Takes precedence over[`OLLAMA_BASE_URL`](#ollama_base_url).
#### `K8S_FLAG` #### `K8S_FLAG`
- Type: `bool`
- Description: If set, assumes Helm chart deployment and sets [`OLLAMA_BASE_URL`](#ollama_base_url) to `http://ollama-service.open-webui.svc.cluster.local:11434` - Description: If set, assumes Helm chart deployment and sets [`OLLAMA_BASE_URL`](#ollama_base_url) to `http://ollama-service.open-webui.svc.cluster.local:11434`
#### `USE_OLLAMA_DOCKER` #### `USE_OLLAMA_DOCKER`
- Type: `bool`
- Default: `False` - Default: `False`
- Description: Builds the Docker image with a bundled Ollama instance. - Description: Builds the Docker image with a bundled Ollama instance.
#### `OLLAMA_API_BASE_URL` #### `OLLAMA_API_BASE_URL`
- Type: `str`
- Default: `http://localhost:11434/api` - Default: `http://localhost:11434/api`
- Description: Deprecated, see [`OLLAMA_BASE_URL`](#ollama_base_url). - Description: Deprecated, see [`OLLAMA_BASE_URL`](#ollama_base_url).
@ -236,25 +318,30 @@ Here is a list of supported environment variables used by `backend/config.py` in
#### `ENABLE_OPENAI_API` #### `ENABLE_OPENAI_API`
- Type: `bool`
- Default: `true` - Default: `true`
- Description: Enables the use of OpenAI APIs. - Description: Enables the use of OpenAI APIs.
#### `OPENAI_API_KEY` #### `OPENAI_API_KEY`
- Type: `str`
- Description: Sets the OpenAI API key. - Description: Sets the OpenAI API key.
#### `OPENAI_API_BASE_URL` #### `OPENAI_API_BASE_URL`
- Type: `str`
- Default: `https://api.openai.com/v1` - Default: `https://api.openai.com/v1`
- Description: Configures the OpenAI base API URL. - Description: Configures the OpenAI base API URL.
#### `OPENAI_API_BASE_URLS` #### `OPENAI_API_BASE_URLS`
- Type: `str`
- Description: Supports balanced OpenAI base API URLs, semicolon-separated. - Description: Supports balanced OpenAI base API URLs, semicolon-separated.
- Example: `http://host-one:11434;http://host-two:11434` - Example: `http://host-one:11434;http://host-two:11434`
#### `OPENAI_API_KEYS` #### `OPENAI_API_KEYS`
- Type: `str`
- Description: Supports multiple OpenAI API keys, semicolon-separated. - Description: Supports multiple OpenAI API keys, semicolon-separated.
- Example: `sk-124781258123;sk-4389759834759834` - Example: `sk-124781258123;sk-4389759834759834`
@ -262,14 +349,17 @@ Here is a list of supported environment variables used by `backend/config.py` in
#### `TASK_MODEL` #### `TASK_MODEL`
- Type: `str`
- Description: The default model to use for tasks such as title and web search query generation when using Ollama models. - Description: The default model to use for tasks such as title and web search query generation when using Ollama models.
#### `TASK_MODEL_EXTERNAL` #### `TASK_MODEL_EXTERNAL`
- Type: `str`
- Description: The default model to use for tasks such as title and web search query generation when using OpenAI-compatible endpoints. - Description: The default model to use for tasks such as title and web search query generation when using OpenAI-compatible endpoints.
#### `TITLE_GENERATION_PROMPT_TEMPLATE` #### `TITLE_GENERATION_PROMPT_TEMPLATE`
- Type: `str`
- Description: Prompt to use when generating chat titles. - Description: Prompt to use when generating chat titles.
- Default: - Default:
@ -290,6 +380,7 @@ Artificial Intelligence in Healthcare
#### `SEARCH_QUERY_GENERATION_PROMPT_TEMPLATE` #### `SEARCH_QUERY_GENERATION_PROMPT_TEMPLATE`
- Type: `str`
- Description: Prompt to use when generating search queries. - Description: Prompt to use when generating search queries.
- Default: - Default:
@ -302,11 +393,13 @@ Question:
#### `SEARCH_QUERY_PROMPT_LENGTH_THRESHOLD` #### `SEARCH_QUERY_PROMPT_LENGTH_THRESHOLD`
- Type: `int`
- Default: `100` - Default: `100`
- Description: Sets the minimum length of a prompt before a model is used to synthesize a web search query when web search is enabled. - Description: Sets the minimum length of a prompt before a model is used to synthesize a web search query when web search is enabled.
#### `TOOLS_FUNCTION_CALLING_PROMPT_TEMPLATE` #### `TOOLS_FUNCTION_CALLING_PROMPT_TEMPLATE`
- Type: `str`
- Description: Prompt to use when calling tools. - Description: Prompt to use when calling tools.
- Default: - Default:
@ -319,88 +412,105 @@ If a function tool doesn't match the query, return an empty string. Else, pick a
#### `DOCS_DIR` #### `DOCS_DIR`
- Type: `str`
- Default: `${DATA_DIR}/docs` - Default: `${DATA_DIR}/docs`
- Description: Specifies the directory scanned for documents to add to the RAG database when triggered. - Description: Specifies the directory scanned for documents to add to the RAG database when triggered.
#### `CHROMA_TENANT` #### `CHROMA_TENANT`
- Type: `str`
- Default: `default_tenant` - Default: `default_tenant`
- Description: Sets the tenant for ChromaDB to use for RAG embeddings. - Description: Sets the tenant for ChromaDB to use for RAG embeddings.
#### `CHROMA_DATABASE` #### `CHROMA_DATABASE`
- Type: `str`
- Default: `default_database` - Default: `default_database`
- Description: Sets the database in the ChromaDB tenant to use for RAG embeddings. - Description: Sets the database in the ChromaDB tenant to use for RAG embeddings.
#### `CHROMA_HTTP_HOST` #### `CHROMA_HTTP_HOST`
- Type: `str`
- Description: Specifies the hostname of a remote ChromaDB Server. Uses a local ChromaDB instance if not set. - Description: Specifies the hostname of a remote ChromaDB Server. Uses a local ChromaDB instance if not set.
#### `CHROMA_HTTP_PORT` #### `CHROMA_HTTP_PORT`
- Type: `int`
- Default: `8000` - Default: `8000`
- Description: Specifies the port of a remote ChromaDB Server. - Description: Specifies the port of a remote ChromaDB Server.
#### `CHROMA_HTTP_HEADERS` #### `CHROMA_HTTP_HEADERS`
- Type: `str`
- Description: Comma-separated list of HTTP headers to include with every ChromaDB request. - Description: Comma-separated list of HTTP headers to include with every ChromaDB request.
- Example: `Authorization=Bearer heuhagfuahefj,User-Agent=OpenWebUI`. - Example: `Authorization=Bearer heuhagfuahefj,User-Agent=OpenWebUI`.
#### `CHROMA_HTTP_SSL` #### `CHROMA_HTTP_SSL`
- Type: `bool`
- Default: `False` - Default: `False`
- Description: Controls whether or not SSL is used for ChromaDB Server connections. - Description: Controls whether or not SSL is used for ChromaDB Server connections.
#### `RAG_TOP_K` #### `RAG_TOP_K`
- Type: `int`
- Default: `5` - Default: `5`
- Description: Sets the default number of results to consider when using RAG. - Description: Sets the default number of results to consider when using RAG.
#### `RAG_RELEVANCE_THRESHOLD` #### `RAG_RELEVANCE_THRESHOLD`
- Type: `float`
- Default: `0.0` - Default: `0.0`
- Description: Sets the relevance threshold to consider for documents when used with reranking. - Description: Sets the relevance threshold to consider for documents when used with reranking.
#### `ENABLE_RAG_HYBRID_SEARCH` #### `ENABLE_RAG_HYBRID_SEARCH`
- Type: `bool`
- Default: `False` - Default: `False`
- Description: Enables the use of ensemble search with `BM25` + `ChromaDB`, with reranking using `sentence_transformers` models. - Description: Enables the use of ensemble search with `BM25` + `ChromaDB`, with reranking using `sentence_transformers` models.
#### `ENABLE_RAG_WEB_LOADER_SSL_VERIFICATION` #### `ENABLE_RAG_WEB_LOADER_SSL_VERIFICATION`
- Type: `bool`
- Default: `True` - Default: `True`
- Description: Enables TLS certification verification when browsing web pages for RAG. - Description: Enables TLS certification verification when browsing web pages for RAG.
#### `RAG_EMBEDDING_ENGINE` #### `RAG_EMBEDDING_ENGINE`
- Type: `str` (enum: ` ` (empty for local model), `ollama`, `openai`)
- Options: - Options:
- `` (empty for local model) - (empty) - Uses a local model for embeddings.
- `ollama` - `ollama` - Uses the Ollama API for embeddings.
- `openai` - `openai` - Uses the OpenAI API for embeddings.
- Description: Selects an embedding engine to use for RAG. - Description: Selects an embedding engine to use for RAG.
#### `PDF_EXTRACT_IMAGES` #### `PDF_EXTRACT_IMAGES`
- Type: `bool`
- Default: `False` - Default: `False`
- Description: Extracts images from PDFs using OCR when loading documents. - Description: Extracts images from PDFs using OCR when loading documents.
#### `RAG_EMBEDDING_MODEL` #### `RAG_EMBEDDING_MODEL`
- Type: `str`
- Default: `sentence-transformers/all-MiniLM-L6` - Default: `sentence-transformers/all-MiniLM-L6`
- Description: Sets a model for embeddings. Locally, a Sentence-Transformer model is used. - Description: Sets a model for embeddings. Locally, a Sentence-Transformer model is used.
#### `RAG_EMBEDDING_MODEL_AUTO_UPDATE` #### `RAG_EMBEDDING_MODEL_AUTO_UPDATE`
- Type: `bool`
- Default: `False` - Default: `False`
- Description: Toggles automatic update of the Sentence-Transformer model. - Description: Toggles automatic update of the Sentence-Transformer model.
#### `RAG_EMBEDDING_MODEL_TRUST_REMOTE_CODE` #### `RAG_EMBEDDING_MODEL_TRUST_REMOTE_CODE`
- Type: `bool`
- Default: `False` - Default: `False`
- Description: Determines whether or not to allow custom models defined on the Hub in their own modeling files. - Description: Determines whether or not to allow custom models defined on the Hub in their own modeling files.
#### `RAG_TEMPLATE` #### `RAG_TEMPLATE`
- Type: `str`
- Default: - Default:
``` ```
@ -423,51 +533,60 @@ Query: [query]
#### `RAG_RERANKING_MODEL` #### `RAG_RERANKING_MODEL`
- Default: `` - Type: `str`
- Description: Sets a model for reranking results. Locally, a Sentence-Transformer model is used. - Description: Sets a model for reranking results. Locally, a Sentence-Transformer model is used.
#### `RAG_RERANKING_MODEL_AUTO_UPDATE` #### `RAG_RERANKING_MODEL_AUTO_UPDATE`
- Type: `bool`
- Default: `False` - Default: `False`
- Description: Toggles automatic update of the reranking model. - Description: Toggles automatic update of the reranking model.
#### `RAG_RERANKING_MODEL_TRUST_REMOTE_CODE` #### `RAG_RERANKING_MODEL_TRUST_REMOTE_CODE`
- Type: `bool`
- Default: `False` - Default: `False`
- Description: Determines whether or not to allow custom models defined on the Hub in their own modeling files for reranking. - Description: Determines whether or not to allow custom models defined on the Hub in their own modeling files for reranking.
#### `RAG_OPENAI_API_BASE_URL` #### `RAG_OPENAI_API_BASE_URL`
- Type: `str`
- Default: `${OPENAI_API_BASE_URL}` - Default: `${OPENAI_API_BASE_URL}`
- Description: Sets the OpenAI base API URL to use for RAG embeddings. - Description: Sets the OpenAI base API URL to use for RAG embeddings.
#### `RAG_OPENAI_API_KEY` #### `RAG_OPENAI_API_KEY`
- Type: `str`
- Default: `${OPENAI_API_KEY}` - Default: `${OPENAI_API_KEY}`
- Description: Sets the OpenAI API key to use for RAG embeddings. - Description: Sets the OpenAI API key to use for RAG embeddings.
#### `RAG_EMBEDDING_OPENAI_BATCH_SIZE` #### `RAG_EMBEDDING_OPENAI_BATCH_SIZE`
- Type: `int`
- Default: `1` - Default: `1`
- Description: Sets the batch size for OpenAI embeddings. - Description: Sets the batch size for OpenAI embeddings.
#### `ENABLE_RAG_LOCAL_WEB_FETCH` #### `ENABLE_RAG_LOCAL_WEB_FETCH`
- Type: `bool`
- Default: `False` - Default: `False`
- Description: Enables local web fetching for RAG. Enabling this allows Server Side Request Forgery attacks against local network resources. - Description: Enables local web fetching for RAG. Enabling this allows Server Side Request Forgery attacks against local network resources.
#### `YOUTUBE_LOADER_LANGUAGE` #### `YOUTUBE_LOADER_LANGUAGE`
- Type: `str`
- Default: `en` - Default: `en`
- Description: Sets the language to use for YouTube video loading. - Description: Sets the language to use for YouTube video loading.
#### `CHUNK_SIZE` #### `CHUNK_SIZE`
- Type: `int`
- Default: `1500` - Default: `1500`
- Description: Sets the document chunk size for embeddings. - Description: Sets the document chunk size for embeddings.
#### `CHUNK_OVERLAP` #### `CHUNK_OVERLAP`
- Type: `int`
- Default: `100` - Default: `100`
- Description: Specifies how much overlap there should be between chunks. - Description: Specifies how much overlap there should be between chunks.
@ -475,64 +594,85 @@ Query: [query]
#### `ENABLE_RAG_WEB_SEARCH` #### `ENABLE_RAG_WEB_SEARCH`
- Type: `bool`
- Default: `false` - Default: `false`
- Description: Enable web search toggle - Description: Enable web search toggle
#### `RAG_WEB_SEARCH_ENGINE` #### `RAG_WEB_SEARCH_ENGINE`
- Options: `searxng`, `google_pse`, `brave`, `serpstack`, `serper`, `duckduckgo`, `tavily`, `jina` - Type: `str` (enum: `searxng`, `google_pse`, `brave`, `serpstack`, `serper`, `duckduckgo`, `tavily`, `jina`)
- Options:
- `searxng` - Uses the SearXNG search engine.
- `google_pse` - Uses the Google Programmable Search Engine.
- `brave` - Uses the Brave search engine.
- `serpstack` - Uses the Serpstack search engine.
- `serper` - Uses the Serper search engine.
- `duckduckgo` - Uses the DuckDuckGo search engine.
- `tavily` - Uses the Tavily search engine.
- `jina` - Uses the Jina search engine.
- Description: Select engine for performing searches - Description: Select engine for performing searches
#### `SEARXNG_QUERY_URL` #### `SEARXNG_QUERY_URL`
- Type: `str`
- Description: The [SearXNG search API](https://docs.searxng.org/dev/search_api.html) URL supporting JSON output. `<query>` is replaced with the search query. Example: `http://searxng.local/search?q=<query>` - Description: The [SearXNG search API](https://docs.searxng.org/dev/search_api.html) URL supporting JSON output. `<query>` is replaced with the search query. Example: `http://searxng.local/search?q=<query>`
#### `GOOGLE_PSE_API_KEY` #### `GOOGLE_PSE_API_KEY`
- Type: `str`
- Description: The API key for the Google Programmable Search Engine (PSE) service. - Description: The API key for the Google Programmable Search Engine (PSE) service.
#### `GOOGLE_PSE_ENGINE_ID` #### `GOOGLE_PSE_ENGINE_ID`
- Type: `str`
- Description: The engine ID for the Google Programmable Search Engine (PSE) service. - Description: The engine ID for the Google Programmable Search Engine (PSE) service.
#### `BRAVE_SEARCH_API_KEY` #### `BRAVE_SEARCH_API_KEY`
- Default: `` - Type: `str`
- Description: The API key for the Brave Search API. - Description: The API key for the Brave Search API.
#### `SERPSTACK_API_KEY` #### `SERPSTACK_API_KEY`
- Type: `str`
- Description: The API key for Serpstack search API. - Description: The API key for Serpstack search API.
#### `SERPSTACK_HTTPS` #### `SERPSTACK_HTTPS`
- Type: `bool`
- Default: `True` - Default: `True`
- Description: Configures the use of HTTPS for Serpstack requests. Free tier requests are restricted to HTTP only. - Description: Configures the use of HTTPS for Serpstack requests. Free tier requests are restricted to HTTP only.
#### `SERPER_API_KEY` #### `SERPER_API_KEY`
- Type: `str`
- Description: The API key for the Serper search API. - Description: The API key for the Serper search API.
#### `SERPLY_API_KEY` #### `SERPLY_API_KEY`
- Type: `str`
- Description: The API key for the Serply search API. - Description: The API key for the Serply search API.
#### `TAVILY_API_KEY` #### `TAVILY_API_KEY`
- Type: `str`
- Description: The API key for the Tavily search API. - Description: The API key for the Tavily search API.
#### `RAG_WEB_SEARCH_RESULT_COUNT` #### `RAG_WEB_SEARCH_RESULT_COUNT`
- Type: `int`
- Default: `3` - Default: `3`
- Description: Maximum number of search results to crawl. - Description: Maximum number of search results to crawl.
#### `RAG_WEB_SEARCH_CONCURRENT_REQUESTS` #### `RAG_WEB_SEARCH_CONCURRENT_REQUESTS`
- Type: `int`
- Default: `10` - Default: `10`
- Description: Number of concurrent requests to crawl web pages returned from search results. - Description: Number of concurrent requests to crawl web pages returned from search results.
#### `RAG_WEB_SEARCH_DOMAIN_FILTER_LIST` #### `RAG_WEB_SEARCH_DOMAIN_FILTER_LIST`
- Type: `list` of `str`
- Default: `[]` - Default: `[]`
- Description: You can provide a list of your own websites to filter after performing a web search. This ensures the highest level of safety and reliability of the information sources. - Description: You can provide a list of your own websites to filter after performing a web search. This ensures the highest level of safety and reliability of the information sources.
@ -540,38 +680,45 @@ Query: [query]
#### `AUDIO_STT_ENGINE` #### `AUDIO_STT_ENGINE`
- Type: `str` (enum: ` ` (empty for local Whisper), `openai`)
- Options: - Options:
- `` - empty for local Whisper - (empty) - Uses local Whisper engine for Speech-to-Text.
- `openai` - OpenAI-compatible transcription - `openai` - Uses OpenAI engine for Speech-to-Text.
- Description: Specifies the Speech-to-Text engine to use. - Description: Specifies the Speech-to-Text engine to use.
#### `AUDIO_STT_OPENAI_API_BASE_URL` #### `AUDIO_STT_OPENAI_API_BASE_URL`
- Type: `str`
- Default: `${OPENAI_API_BASE_URL}` - Default: `${OPENAI_API_BASE_URL}`
- Description: Sets the OpenAI-compatible base URL to use for Speech-to-Text. - Description: Sets the OpenAI-compatible base URL to use for Speech-to-Text.
#### `AUDIO_STT_OPENAI_API_KEY` #### `AUDIO_STT_OPENAI_API_KEY`
- Type: `str`
- Default: `${OPENAI_API_KEY}` - Default: `${OPENAI_API_KEY}`
- Description: Sets the OpenAI API key to use for Speech-to-Text. - Description: Sets the OpenAI API key to use for Speech-to-Text.
#### `AUDIO_STT_MODEL` #### `AUDIO_STT_MODEL`
- Type: `str`
- Default: `whisper-1` - Default: `whisper-1`
- Description: Specifies the Speech-to-Text model to use for OpenAI-compatible endpoints. - Description: Specifies the Speech-to-Text model to use for OpenAI-compatible endpoints.
#### `WHISPER_MODEL` #### `WHISPER_MODEL`
- Type: `str`
- Default: `base` - Default: `base`
- Description: Sets the Whisper model to use for Speech-to-Text. - Description: Sets the Whisper model to use for Speech-to-Text.
#### `WHISPER_MODEL_DIR` #### `WHISPER_MODEL_DIR`
- Type: `str`
- Default: `${DATA_DIR}/cache/whisper/models` - Default: `${DATA_DIR}/cache/whisper/models`
- Description: Specifies the directory to store Whisper model files. - Description: Specifies the directory to store Whisper model files.
#### `WHISPER_MODEL_AUTO_UPDATE` #### `WHISPER_MODEL_AUTO_UPDATE`
- Type: `bool`
- Default: `False` - Default: `False`
- Description: Toggles automatic update of the Whisper model. - Description: Toggles automatic update of the Whisper model.
@ -579,28 +726,33 @@ Query: [query]
#### `AUDIO_TTS_ENGINE` #### `AUDIO_TTS_ENGINE`
- Type: `str` (enum: ` ` (empty for Web API), `openai`)
- Options: - Options:
- `` - empty for Web API - (empty) - Uses Web API engine for Text-to-Speech.
- `openai` - OpenAI-compatible text-to-speech. - `openai` - Uses OpenAI engine for Text-to-Speech.
- Description: Specifies the Text-to-Speech engine to use. - Description: Specifies the Text-to-Speech engine to use.
#### `AUDIO_TTS_OPENAI_API_BASE_URL` #### `AUDIO_TTS_OPENAI_API_BASE_URL`
- Type: `str`
- Default: `${OPENAI_API_BASE_URL}` - Default: `${OPENAI_API_BASE_URL}`
- Description: Sets the OpenAI-compatible base URL to use for text-to-speech. - Description: Sets the OpenAI-compatible base URL to use for text-to-speech.
#### `AUDIO_TTS_OPENAI_API_KEY` #### `AUDIO_TTS_OPENAI_API_KEY`
- Type: `str`
- Default: `${OPENAI_API_KEY}` - Default: `${OPENAI_API_KEY}`
- Description: Sets the API key to use for text-to-speech. - Description: Sets the API key to use for text-to-speech.
#### `AUDIO_TTS_MODEL` #### `AUDIO_TTS_MODEL`
- Type: `str`
- Default: `tts-1` - Default: `tts-1`
- Description: Specifies the OpenAI text-to-speech model to use. - Description: Specifies the OpenAI text-to-speech model to use.
#### `AUDIO_TTS_VOICE` #### `AUDIO_TTS_VOICE`
- Type: `str`
- Default: `alloy` - Default: `alloy`
- Description: Sets the OpenAI text-to-speech voice to use. - Description: Sets the OpenAI text-to-speech voice to use.
@ -608,179 +760,227 @@ Query: [query]
#### `ENABLE_IMAGE_GENERATION` #### `ENABLE_IMAGE_GENERATION`
- Type: `bool`
- Default: `False` - Default: `False`
- Description: Enables or disables image generation features. - Description: Enables or disables image generation features.
#### `IMAGE_GENERATION_ENGINE` #### `IMAGE_GENERATION_ENGINE`
- Options: `openai`, `comfyui`, `automatic1111` - Type: `str` (enum: `openai`, `comfyui`, `automatic1111`)
- Options:
- `openai` - Uses OpenAI engine for image generation.
- `comfyui` - Uses ComfyUI engine for image generation.
- `automatic1111` - Uses Automatic1111 engine for image generation (default).
- Default: `automatic1111` - Default: `automatic1111`
- Description: Specifies the engine to use for image generation. - Description: Specifies the engine to use for image generation.
#### `AUTOMATIC1111_BASE_URL` #### `AUTOMATIC1111_BASE_URL`
- Type: `str`
- Description: Specifies the URL to Automatic1111's Stable Diffusion API. - Description: Specifies the URL to Automatic1111's Stable Diffusion API.
#### `COMFYUI_BASE_URL` #### `COMFYUI_BASE_URL`
- Type: `str`
- Description: Specifies the URL to the ComfyUI image generation API. - Description: Specifies the URL to the ComfyUI image generation API.
#### `COMFYUI_CFG_SCALE` #### `COMFYUI_CFG_SCALE`
- Type: `int`
- Default: `7` - Default: `7`
- Description: Specifies a `cfg_scale` value to use with ComfyUI. If you are using Stable Diffusion 3, the recommended value is `5.5`. - Description: Specifies a `cfg_scale` value to use with ComfyUI. If you are using Stable Diffusion 3, the recommended value is `5.5`.
#### `COMFYUI_SAMPLER` #### `COMFYUI_SAMPLER`
- Type: `str`
- Default: `euler` - Default: `euler`
- Description: Specifies a sampler to use with ComfyUI. - Description: Specifies a sampler to use with ComfyUI.
#### `COMFYUI_SCHEDULER` #### `COMFYUI_SCHEDULER`
- Type: `str`
- Default: `normal` - Default: `normal`
- Description: Specifies a scheduler to use with ComfyUI. If you are using Stable Diffusion 3, the recommended value is `sgm_uniform`. - Description: Specifies a scheduler to use with ComfyUI. If you are using Stable Diffusion 3, the recommended value is `sgm_uniform`.
#### `COMFYUI_SD3` #### `COMFYUI_SD3`
- Type: `bool`
- Default: `False` - Default: `False`
- Description: Sets ComfyUI to Stable Diffusion 3 mode. SD3 will work without this set, but the image quality will be significantly lower. Requires a recent version of ComfyUI. - Description: Sets ComfyUI to Stable Diffusion 3 mode. SD3 will work without this set, but the image quality will be significantly lower. Requires a recent version of ComfyUI.
#### `COMFYUI_FLUX` #### `COMFYUI_FLUX`
- Type: `bool`
- Default: `False` - Default: `False`
- Description: Sets ComfyUI to Flux mode. Only set if Flux is required, as the workflow is completely different and is not at all compatible with other models. Requires a recent version of ComfyUI. Flux currently does not support custom cfg_scale settings. Requires a recent version of ComfyUI and the following files to be present in your ComfyUI installation: - Description: Sets ComfyUI to Flux mode. Only set if Flux is required, as the workflow is completely different and is not at all compatible with other models.
- The model checkpoints, with the `sft` extension, located at **both** `models/checkpoints` and `models/unet`. In order to avoid duplicates wasting disk space, the `mklink` command can be used for Windows (or `ln` with the `-s` option for macOS/Linux). The model checkpoints can be found in [the black-forest-labs HuggingFace page](https://huggingface.co/black-forest-labs) - simply choose the Flux variant you want to run and download the big file with the `sft` extension. :::info
- `clip_l.safetensors` located at `models/clip`. It can be downloaded [here](https://huggingface.co/comfyanonymous/flux_text_encoders/tree/main). [Find out more here](https://docs.openwebui.com/tutorial/images)
- `t5xxl_fp16.safetensors` located at `models/clip`, unless `COMFYUI_FLUX_FP8_CLIP` is enabled. It can be downloaded [here](https://huggingface.co/comfyanonymous/flux_text_encoders/tree/main). :::
- `ae.sft` located at `models/vae`. It can be downloaded [here](https://huggingface.co/black-forest-labs/FLUX.1-schnell/blob/main/ae.sft) for Schnell and [here](https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/ae.sft) for dev.
#### `COMFYUI_FLUX_WEIGHT_DTYPE` #### `COMFYUI_FLUX_WEIGHT_DTYPE`
- Type: `str` (enum: `default`, `fp8_e4m3fn`)
- Options:
- `default` - Uses the default weight precision for Flux.
- `fp8_e4m3fn` - Uses 8-bit floating point precision for Flux, recommended for systems with limited VRAM.
- Default: `default` - Default: `default`
- Description: Ignored if Flux is not enabled. Sets the weight precision for Flux. Available options are `default` and `fp8_e4m3fn`. The latter is recommended if you don't have lots of spare VRAM. - Description: Ignored if Flux is not enabled. Sets the weight precision for Flux.
#### `COMFYUI_FLUX_FP8_CLIP` #### `COMFYUI_FLUX_FP8_CLIP`
- Type: `bool`
- Default: `False` - Default: `False`
- Description: Ignored if Flux is not enabled. Sets the Flux text encoder to 8-bit precision, saving VRAM. Recommended to enable if you don't have lots of spare VRAM. If enabled, the `t5xxl_fp8_e4m3fn.safetensors` file (can be downloaded [here](https://huggingface.co/comfyanonymous/flux_text_encoders/tree/main)) must exist in the `models/clip` directory in your ComfyUI installation. - Description: Ignored if Flux is not enabled. Sets the Flux text encoder to 8-bit precision, saving VRAM.
:::tip
It is recommended to enable this environment variable if your machine doesn't have a lot of spare VRAM.
If enabled, the `t5xxl_fp8_e4m3fn.safetensors` file (can be downloaded [here](https://huggingface.co/comfyanonymous/flux_text_encoders/tree/main))
must exist in the `models/clip` directory in your ComfyUI installation.
:::
#### `IMAGES_OPENAI_API_KEY` #### `IMAGES_OPENAI_API_KEY`
- Type: `str`
- Default: `${OPENAI_API_KEY}` - Default: `${OPENAI_API_KEY}`
- Description: Sets the API key to use for DALL-E image generation. - Description: Sets the API key to use for DALL-E image generation.
#### `IMAGES_OPENAI_API_BASE_URL` #### `IMAGES_OPENAI_API_BASE_URL`
- Type: `str`
- Default: `${OPENAI_API_BASE_URL}` - Default: `${OPENAI_API_BASE_URL}`
- Description: Sets the OpenAI-compatible base URL to use for DALL-E image generation. - Description: Sets the OpenAI-compatible base URL to use for DALL-E image generation.
#### `IMAGE_SIZE` #### `IMAGE_SIZE`
- Type: `str`
- Default: `512x512` - Default: `512x512`
- Description: Sets the default image size to generate. - Description: Sets the default image size to generate.
#### `IMAGE_STEPS` #### `IMAGE_STEPS`
- Type: `int`
- Default: `50` - Default: `50`
- Description: Sets the default iteration steps for image generation. Used for ComfyUI and AUTOMATIC1111. - Description: Sets the default iteration steps for image generation. Used for ComfyUI and AUTOMATIC1111.
#### `IMAGE_GENERATION_MODEL` #### `IMAGE_GENERATION_MODEL`
- Type: `str`
- Description: Default model to use for image generation - Description: Default model to use for image generation
### OAuth ### OAuth
#### `ENABLE_OAUTH_SIGNUP` #### `ENABLE_OAUTH_SIGNUP`
- Type: `bool`
- Default: `False` - Default: `False`
- Description: Enables user account creation via OAuth. - Description: Enables user account creation via OAuth.
#### `OAUTH_MERGE_ACCOUNTS_BY_EMAIL` #### `OAUTH_MERGE_ACCOUNTS_BY_EMAIL`
- Type: `bool`
- Default: `False` - Default: `False`
- Description: If enabled, merges OAuth accounts with existing accounts using the same email address. This is considered unsafe as providers may not verify email addresses and can lead account takeovers. - Description: If enabled, merges OAuth accounts with existing accounts using the same email address. This is considered unsafe as providers may not verify email addresses and can lead account takeovers.
#### `OAUTH_USERNAME_CLAIM` #### `OAUTH_USERNAME_CLAIM`
- Type: `str`
- Default: `name` - Default: `name`
- Description: Set username claim for OpenID. - Description: Set username claim for OpenID.
#### `OAUTH_PICTURE_CLAIM` #### `OAUTH_PICTURE_CLAIM`
- Type: `str`
- Default: `picture` - Default: `picture`
- Description: Set picture (avatar) claim for OpenID. - Description: Set picture (avatar) claim for OpenID.
#### `OAUTH_EMAIL_CLAIM` #### `OAUTH_EMAIL_CLAIM`
- Type: `str`
- Default: `email` - Default: `email`
- Description: Set email claim for OpenID. - Description: Set email claim for OpenID.
#### `GOOGLE_CLIENT_ID` #### `GOOGLE_CLIENT_ID`
- Type: `str`
- Description: Sets the client ID for Google OAuth - Description: Sets the client ID for Google OAuth
#### `GOOGLE_CLIENT_SECRET` #### `GOOGLE_CLIENT_SECRET`
- Type: `str`
- Description: Sets the client secret for Google OAuth - Description: Sets the client secret for Google OAuth
#### `GOOGLE_OAUTH_SCOPE` #### `GOOGLE_OAUTH_SCOPE`
- Type: `str`
- Default: `openid email profile` - Default: `openid email profile`
- Description: Sets the scope for Google OAuth authentication. - Description: Sets the scope for Google OAuth authentication.
### `GOOGLE_REDIRECT_URI` #### `GOOGLE_REDIRECT_URI`
- Type: `str`
- Description: Sets the redirect URI for Google OAuth - Description: Sets the redirect URI for Google OAuth
#### `MICROSOFT_CLIENT_ID` #### `MICROSOFT_CLIENT_ID`
- Type: `str`
- Description: Sets the client ID for Microsoft OAuth - Description: Sets the client ID for Microsoft OAuth
#### `MICROSOFT_CLIENT_SECRET` #### `MICROSOFT_CLIENT_SECRET`
- Type: `str`
- Description: Sets the client secret for Microsoft OAuth - Description: Sets the client secret for Microsoft OAuth
#### `MICROSOFT_CLIENT_TENANT_ID` #### `MICROSOFT_CLIENT_TENANT_ID`
- Type: `str`
- Description: Sets the tenant ID for Microsoft OAuth - Description: Sets the tenant ID for Microsoft OAuth
#### `MICROSOFT_OAUTH_SCOPE` #### `MICROSOFT_OAUTH_SCOPE`
- Type: `str`
- Default: `openid email profile` - Default: `openid email profile`
- Description: Sets the scope for Microsoft OAuth authentication. - Description: Sets the scope for Microsoft OAuth authentication.
#### `MICROSOFT_REDIRECT_URI` #### `MICROSOFT_REDIRECT_URI`
- Type: `str`
- Description: Sets the redirect URI for Microsoft OAuth - Description: Sets the redirect URI for Microsoft OAuth
#### `OAUTH_CLIENT_ID` #### `OAUTH_CLIENT_ID`
- Type: `str`
- Description: Sets the client ID for OIDC - Description: Sets the client ID for OIDC
#### `OAUTH_CLIENT_SECRET` #### `OAUTH_CLIENT_SECRET`
- Type: `str`
- Description: Sets the client secret for OIDC - Description: Sets the client secret for OIDC
#### `OPENID_PROVIDER_URL` #### `OPENID_PROVIDER_URL`
- Type: `str`
- Description: Path to the `.well-known/openid-configuration` endpoint - Description: Path to the `.well-known/openid-configuration` endpoint
#### `OAUTH_SCOPES` #### `OAUTH_SCOPES`
- Type: `str`
- Default: `openid email profile` - Default: `openid email profile`
- Description: Sets the scope for OIDC authentication. `openid` and `email` are required. - Description: Sets the scope for OIDC authentication. `openid` and `email` are required.
#### `OAUTH_PROVIDER_NAME` #### `OAUTH_PROVIDER_NAME`
- Type: `str`
- Default: `SSO` - Default: `SSO`
- Description: Sets the name for the OIDC provider. - Description: Sets the name for the OIDC provider.
#### `OPENID_REDIRECT_URI` #### `OPENID_REDIRECT_URI`
- Type: `str`
- Description: Sets the redirect URI for OIDC - Description: Sets the redirect URI for OIDC
### LiteLLM ### LiteLLM
@ -794,16 +994,19 @@ You will need to either migrate to [pipelines](https://github.com/open-webui/pip
#### `ENABLE_LITELLM` #### `ENABLE_LITELLM`
- Type: `bool`
- Default: `True` - Default: `True`
- Description: Enables the bundled LiteLLM instance. - Description: Enables the bundled LiteLLM instance.
#### `LITELLM_PROXY_PORT` #### `LITELLM_PROXY_PORT`
- Type: `int`
- Default: `14365` - Default: `14365`
- Description: Sets the port to run the bundled LiteLLM instance on. - Description: Sets the port to run the bundled LiteLLM instance on.
#### `LITELLM_PROXY_HOST` #### `LITELLM_PROXY_HOST`
- Type: `str`
- Default: `127.0.0.1` - Default: `127.0.0.1`
- Description: Sets the address to run the bundled LiteLLM instance on. - Description: Sets the address to run the bundled LiteLLM instance on.
@ -817,10 +1020,15 @@ Open-Webui supports using proxies for HTTP and HTTPS retrievals. To specify prox
#### `http_proxy` #### `http_proxy`
- Type: `str`
- Description: Sets the URL for the HTTP proxy.
#### `https_proxy` #### `https_proxy`
- These variables, if set, should contain the URLs for HTTP and HTTPS proxies, respectively. - Type: `str`
- Description: Sets the URL for the HTTPS proxy.
#### `no_proxy` #### `no_proxy`
- This variable lists domain extensions (or IP addresses) for which the proxy should not be used, separated by commas. For example, setting no_proxy to '.mit.edu' ensures that the proxy is bypassed when accessing documents from MIT. - Type: `str`
- Description: Lists domain extensions (or IP addresses) for which the proxy should not be used, separated by commas. For example, setting no_proxy to '.mit.edu' ensures that the proxy is bypassed when accessing documents from MIT.