mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 11:28:35 -05:00
[GH-ISSUE #24163] v0.9.2: model save in admin UI overwrites meta.capabilities with form defaults #58883
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 @zhapostolski on GitHub (Apr 26, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/24163
Description
In v0.9.2, saving a custom model via Admin > Models > [model] > Save (without making any visible changes) overwrites
meta.capabilitiesin the DB with form defaults (alltrue), discarding any customfalsevalues that were set programmatically or via the API.Repro
falsedirectly in the DB:meta.capabilities.web_searchisfalse.meta.capabilities.web_searchis nowtrue.Expected
Capability values present in the DB should be loaded into the form when opening the model editor, and a no-op save should preserve them. If a capability isn't represented in the UI, it should not be overwritten.
Actual
The form initializes capability checkboxes from internal defaults (all
true), not from the DB. On save, those defaults overwrite the persisted DB values.Affected fields observed
meta.capabilities:web_search,code_interpreter,terminal,image_generationall flip fromfalse->trueon no-op save.params.tool_idsandmeta.toolIdsare preserved correctly -- onlymeta.capabilitiesis affected.Impact
For custom model presets where an admin needs to disable a capability (e.g. disable
web_searchto stop RAG auto-search per message, or disablecode_interpreterto prevent fallback fabrication when a tool fails), there's no way to keep that disabled across admin edits. Any user who clicks Save in admin re-enables it.Environment
ghcr.io/open-webui/open-webui:v0.9.2)base_model_id = NULLand ID matching a backend model from the OpenAI-compatible endpoint (LiteLLM upstream)Workaround
Re-run a SQL UPDATE on
meta.capabilitiesafter any admin save: