[GH-ISSUE #24319] bug: DEFAULT_MODEL_METADATA env not parsed when persistentconfig=false #58930

Open
opened 2026-05-06 00:29:17 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @Soakedcardinal on GitHub (May 2, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/24319

Check Existing Issues

  • I have searched for any existing and/or related issues.
  • I have searched for any existing and/or related discussions.
  • I have also searched in the CLOSED issues AND CLOSED discussions and found no related items (your issue might already be addressed on the development branch!).
  • I am using the latest version of Open WebUI.

Installation Method

Git Clone

Open WebUI Version

v0.9.2

Ollama Version (if applicable)

No response

Operating System

linux

Browser (if applicable)

No response

Confirmation

  • I have read and followed all instructions in README.md.
  • I am using the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.
  • I have provided every relevant configuration, setting, and environment variable used in my setup.
  • I have clearly listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc).
  • I have documented step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation. My steps:
  • Start with the initial platform/version/OS and dependencies used,
  • Specify exact install/launch/configure commands,
  • List URLs visited, user input (incl. example values/emails/passwords if needed),
  • Describe all options and toggles enabled or changed,
  • Include any files or environmental changes,
  • Identify the expected and actual result at each stage,
  • Ensure any reasonably skilled user can follow and hit the same issue.

Expected Behavior

default metadata (capabilities, builtin tools) is set from env when persistentconfig=false

Actual Behavior

DEFAULT_MODEL_METADATA environment variable is ignored

Steps to Reproduce

  1. deploy via docker with:
ENABLE_PERSISTENT_CONFIG: "False"
DEFAULT_MODEL_METADATA: '{"capabilities":{"file_context":true,"vision":true,"file_upload":true,"web_search":false,"image_generation":false,"code_interpreter":false,"terminal":false,"citations":false,"status_updates":true,"usage":true,"builtin_tools":true},"builtinTools":{"time":false,"web_search":false,"calendar":false,"image_generation":false,"memory":false,"chats":false,"code_interpreter":false,"notes":false,"tasks":false,"knowledge":false,"channels":false,"automations":false}}'
  1. Observe all capabilities+builtin tools are enabled in /admin/settings/models

Logs & Screenshots

not applicable

Additional Information

DEFAULT_MODEL_METADATA is hardcoded to {} in config.py and never reads from the environment variable, despite the docs claiming it's configurable via env.

Originally created by @Soakedcardinal on GitHub (May 2, 2026). Original GitHub issue: https://github.com/open-webui/open-webui/issues/24319 ### Check Existing Issues - [x] I have searched for any existing and/or related issues. - [x] I have searched for any existing and/or related discussions. - [x] I have also searched in the CLOSED issues AND CLOSED discussions and found no related items (your issue might already be addressed on the development branch!). - [x] I am using the latest version of Open WebUI. ### Installation Method Git Clone ### Open WebUI Version v0.9.2 ### Ollama Version (if applicable) _No response_ ### Operating System linux ### Browser (if applicable) _No response_ ### Confirmation - [x] I have read and followed all instructions in `README.md`. - [x] I am using the latest version of **both** Open WebUI and Ollama. - [x] I have included the browser console logs. - [x] I have included the Docker container logs. - [x] I have **provided every relevant configuration, setting, and environment variable used in my setup.** - [x] I have clearly **listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup** (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc). - [x] I have documented **step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation**. My steps: - Start with the initial platform/version/OS and dependencies used, - Specify exact install/launch/configure commands, - List URLs visited, user input (incl. example values/emails/passwords if needed), - Describe all options and toggles enabled or changed, - Include any files or environmental changes, - Identify the expected and actual result at each stage, - Ensure any reasonably skilled user can follow and hit the same issue. ### Expected Behavior default metadata (capabilities, builtin tools) is set from env when persistentconfig=false ### Actual Behavior DEFAULT_MODEL_METADATA environment variable is ignored ### Steps to Reproduce 1. deploy via docker with: ``` ENABLE_PERSISTENT_CONFIG: "False" DEFAULT_MODEL_METADATA: '{"capabilities":{"file_context":true,"vision":true,"file_upload":true,"web_search":false,"image_generation":false,"code_interpreter":false,"terminal":false,"citations":false,"status_updates":true,"usage":true,"builtin_tools":true},"builtinTools":{"time":false,"web_search":false,"calendar":false,"image_generation":false,"memory":false,"chats":false,"code_interpreter":false,"notes":false,"tasks":false,"knowledge":false,"channels":false,"automations":false}}' ``` 2. Observe all capabilities+builtin tools are enabled in /admin/settings/models ### Logs & Screenshots not applicable ### Additional Information DEFAULT_MODEL_METADATA is hardcoded to {} in config.py and never reads from the environment variable, despite the docs claiming it's configurable via env.
GiteaMirror added the bug label 2026-05-06 00:29:17 -05:00
Author
Owner

@owui-terminator[bot] commented on GitHub (May 2, 2026):

🔍 Similar Issues Found

I found some existing issues that might be related. Please check if any of these are duplicates or contain helpful solutions:

  1. #24163 v0.9.2: model save in admin UI overwrites meta.capabilities with form defaults
    by zhapostolski

  2. #20813 feat: add ability to define custom models with config files
    by t18n

  3. #21837 issue: DEFAULT_MODEL_PARAMS ignored despite ENABLE_PERSISTENT_CONFIG: "false"
    by dkhachyan · bug

  4. #23404 issue: Context bug (Changes when you change base model)
    by frenzybiscuit · bug

  5. #22996 issue: Default Model Metadata & Params not reflected in Model Editor UI
    by kjpoccia · bug


💡 If this is a duplicate, consider closing it and adding details to the existing issue.

This comment was generated automatically. React with 👍 if helpful, 👎 if not.

<!-- gh-comment-id:4364466330 --> @owui-terminator[bot] commented on GitHub (May 2, 2026): 🔍 **Similar Issues Found** I found some existing issues that might be related. Please check if any of these are duplicates or contain helpful solutions: 1. [#24163](https://github.com/open-webui/open-webui/issues/24163) **v0.9.2: model save in admin UI overwrites meta.capabilities with form defaults** *by zhapostolski* 2. [#20813](https://github.com/open-webui/open-webui/issues/20813) **feat: add ability to define custom models with config files** *by t18n* 3. [#21837](https://github.com/open-webui/open-webui/issues/21837) **issue: DEFAULT_MODEL_PARAMS ignored despite ENABLE_PERSISTENT_CONFIG: "false"** *by dkhachyan · `bug`* 4. [#23404](https://github.com/open-webui/open-webui/issues/23404) **issue: Context bug (Changes when you change base model)** *by frenzybiscuit · `bug`* 5. [#22996](https://github.com/open-webui/open-webui/issues/22996) **issue: Default Model Metadata & Params not reflected in Model Editor UI** *by kjpoccia · `bug`* --- 💡 If this is a duplicate, consider closing it and adding details to the existing issue. *This comment was generated automatically.* React with 👍 if helpful, 👎 if not.
Author
Owner

@Soakedcardinal commented on GitHub (May 2, 2026):

Seems related to #24163 but I experienced this trying to configure via env var, not the ui. (My setup has persistent config false for reproducibility via docker). I have not specifically replicated/noticed #24163

<!-- gh-comment-id:4364477165 --> @Soakedcardinal commented on GitHub (May 2, 2026): Seems *related* to #24163 but I experienced this trying to configure via env var, not the ui. (My setup has persistent config false for reproducibility via docker). I have not specifically replicated/noticed #24163
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#58930