mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-08 04:16:03 -05:00
[GH-ISSUE #4523] Set as default' button overrides UserValves function settings #29172
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 @zspine on GitHub (Aug 11, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/4523
Bug Report
When using the 'Set as default' button from the main chat screen, it overrides all previously saved UserValves function settings.
Installation Method
Docker
Environment
Expected Behavior:
When any action triggers the '/user/settings/update' API endpoint, it should preserve all previously stored user settings.
Actual Behavior:
Any action triggering the '/user/settings/update' API endpoint stores only the values related to 'ui' and wipes all previously saved key values for other settings.
Specifically, when the 'Set as default' button is clicked, it clears all previously saved UserValves function settings, including custom function configurations and API key values.
Reproduction Details
Steps to Reproduce:
/workspace/functions/workspace.Following these steps should reproduce the issue. The 'Set as default' button should preserve all previously saved user settings, including custom function configurations and API key values. Instead, it currently overrides these settings, leading to data loss.
@zspine commented on GitHub (Aug 11, 2024):
The issue can be temporarily resolved by using the following workaround: