mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 19:38:46 -05:00
[GH-ISSUE #7331] System and user valves are not used for functions (filters) #30234
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 @clang88 on GitHub (Nov 25, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/7331
Bug Report
Installation Method
Installed via official docker repo ghcr.io/open-webui/open-webui:main
Environment
Open WebUI Version: 0.4.4
Operating System: Ubuntu 2204 (Server), Windows 10 (Client)
Browser (if applicable): Chrome 131
Confirmation:
Expected Behavior:
When setting a valve via user valves or system valves, the value of that particular item is set in the class "Valves" oder "UserValves".
E.g. if I set Source Language to "English" I expect that
self.UserValves.sourceLanguagereturns "English"Actual Behavior:
self.UserValves.sourceLanguageandself.Vavlves.sourceLanguagealways return the default value, no matter what is set in the user valves or the system valves (valves in "Functions" of admin panel).Reproduction Details
Steps to Reproduce:
Logs and Screenshots
Screenshots/Screen Recordings (if applicable):

Additional Information
The UI says that valves are saved, whenever I change them, but this is not reflected in the filter output
Modified conversation turns code for quicker testing:
@clang88 commented on GitHub (Nov 25, 2024):
P.S.: It seems to work fine for "Tools".


Snapshot from system valves:
Snapshot from returned "Tools" call
Correction: It only works for the system valves, not for the user valves:
