mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 19:38:46 -05:00
[GH-ISSUE #23047] Admin model editor shows empty fields for pipe-generated models #58538
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?
Originally created by @D43-GIT on GitHub (Mar 26, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/23047
Description
When a Pipe function generates models (manifold pipes), the admin model editor (
/admin/workspace/models > click model > edit) shows empty fields for description, system prompt, and profile image — even when these values are stored in the model config database table and returned correctly by the API.Steps to Reproduce
pipes()method that returns sub-modelsprofile_image_urlanddescriptionvia the APIPOST /api/v1/models/createwith matching ID, description, system prompt, and profile imageExpected Behavior
The admin model editor should display the stored description, system prompt, and profile image for pipe-generated models.
Actual Behavior
All fields show placeholder text ("Add a short description...", "Write your model system prompt content here..."). The JSON Preview button shows the pipe's runtime model data with empty fields, not the stored config.
Root Cause
In
functions.py, theget_function_models()function builds pipe model dicts with onlyid,name,object,created,owned_by,pipe, andhas_user_valves. The function'smeta(which containsprofile_image_urlanddescription) is NOT included in the pipe model dict.Then in
utils/models.pyget_all_models(), the merge logic at line ~150 tries to match stored model configs with base models. For pipe models withbase_model_id = NULL, the stored config IS merged intomodel['info']. However, the admin editor frontend appears to read from the pipe's raw model data rather than the mergedinfofield.Suggested Fix
Include the function's
metafields in the pipe model dict inget_function_models():Environment
Workaround
Patching
functions.pyinside the Docker container to includepipe.metain the pipe model dict. This requires re-patching after each container update.@pr-validator-bot commented on GitHub (Mar 26, 2026):
⚠️ Missing Issue Title Prefix
@D43-GIT, your issue title is missing a prefix (e.g.,
bug:,feat:,docs:).Please update your issue title to include one of the following prefixes:
Example:
bug: Login fails when using special characters in password@tjbck commented on GitHub (Mar 26, 2026):
Intended and not supported.