[PR #24334] [CLOSED] fix: parse DEFAULT_MODEL_METADATA from environment variable #66461

Closed
opened 2026-05-06 12:50:14 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/24334
Author: @simer11-jing
Created: 5/3/2026
Status: Closed

Base: devHead: fix/DEFAULT_MODEL_METADATA-env-parsing


📝 Commits (1)

  • 7cd1b5b fix: parse DEFAULT_MODEL_METADATA from environment variable

📊 Changes

1 file changed (+7 additions, -1 deletions)

View changed files

📝 backend/open_webui/config.py (+7 -1)

📄 Description

Summary

Fixes #24319

When ENABLE_PERSISTENT_CONFIG=false, DEFAULT_MODEL_METADATA was not being read from the environment variable because it used a hardcoded empty dict as the default value.

Changes

Added proper environment variable parsing (same pattern as DEFAULT_MODEL_PARAMS) to read DEFAULT_MODEL_METADATA from environment variable.

Testing

  • I have personally tested ALL changes in this PR
  • Tested by setting DEFAULT_MODEL_METADATA env var and verifying it is loaded

CLA Confirmation

I have read and agree to the Contributor License Agreement.

Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/24334 **Author:** [@simer11-jing](https://github.com/simer11-jing) **Created:** 5/3/2026 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `fix/DEFAULT_MODEL_METADATA-env-parsing` --- ### 📝 Commits (1) - [`7cd1b5b`](https://github.com/open-webui/open-webui/commit/7cd1b5bf9047053cd1498a6d269a856baf685570) fix: parse DEFAULT_MODEL_METADATA from environment variable ### 📊 Changes **1 file changed** (+7 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `backend/open_webui/config.py` (+7 -1) </details> ### 📄 Description ## Summary Fixes #24319 When ENABLE_PERSISTENT_CONFIG=false, DEFAULT_MODEL_METADATA was not being read from the environment variable because it used a hardcoded empty dict as the default value. ## Changes Added proper environment variable parsing (same pattern as DEFAULT_MODEL_PARAMS) to read DEFAULT_MODEL_METADATA from environment variable. ## Testing - I have personally tested ALL changes in this PR - Tested by setting DEFAULT_MODEL_METADATA env var and verifying it is loaded ## CLA Confirmation I have read and agree to the Contributor License Agreement. Generated with Claude Code --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-05-06 12:50:14 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#66461