mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
[PR #23147] [CLOSED] feat(config): add environment variable support for DEFAULT_MODEL_PARAMS #27051
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/23147
Author: @dkhachyan
Created: 3/27/2026
Status: ❌ Closed
Base:
main← Head:default-model-params-env📝 Commits (1)
c1a39d4feat(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.