mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-24 22:37:38 -05:00
When Admin Settings > Models > Model Defaults turns a built-in tool off, a model that turns it back on lost that choice on Save. The editor seeds the model's builtinTools with the admin defaults object itself, and setBuiltinTool deleted the tool's key in place, so the admin defaults changed too. The empty map was then dropped on save, and the backend filled in the admin default again. Update a copy of the map in setBuiltinTool, as the Default Features toggles in Capabilities.svelte already build a new list, and keep the empty map when the admin default is not empty, so the model's choice is stored and overrides it.