mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-22 11:44:11 -05:00
[PR #23223] [MERGED] feat(config): add environment variable support for DEFAULT_MODEL_PARAMS #130758
Reference in New Issue
Block a user
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/23223
Author: @dkhachyan
Created: 3/30/2026
Status: ✅ Merged
Merged: 4/1/2026
Merged by: @tjbck
Base:
dev← Head:default-model-params-env-dev📝 Commits (1)
4117837feat(config): add environment variable support for DEFAULT_MODEL_PARAMS📊 Changes
1 file changed (+7 additions, -1 deletions)
View changed files
📝
backend/open_webui/config.py(+7 -1)📄 Description
Pull Request Description
Title:
fix: DEFAULT_MODEL_PARAMS environment variable ignoredChangelog Entry
Description
The
DEFAULT_MODEL_PARAMSenvironment variable was being ignored due to a hardcoded empty dictionary{}being passed as the default value toPersistentConfig. This fix adds proper JSON parsing of theDEFAULT_MODEL_PARAMSenvironment variable, following the same pattern used by similar configurations likeTOOL_SERVER_CONNECTIONSandTERMINAL_SERVER_CONNECTIONS.Fixed
DEFAULT_MODEL_PARAMSenvironment variable being ignored - the value is now properly parsed from JSON and passed toPersistentConfigAdditional Information
https://github.com/open-webui/open-webui/discussions/21839
Usage example:
Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.