mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-09 23:35:09 -05:00
issue: user valves don't show in integrations menu if tool code is imported #6504
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 @Simon-Stone on GitHub (Sep 26, 2025).
Check Existing Issues
Installation Method
Git Clone
Open WebUI Version
v0.6.31
Ollama Version (if applicable)
No response
Operating System
macOS Sequoia
Browser (if applicable)
Chrome
Confirmation
README.md.Expected Behavior
When using this pattern for Tools the gear menu should show in the integrations menu if the imported
Toolsclass contains user valves:Actual Behavior
The gear icon does not show because the presence of user valves is not detected.
Steps to Reproduce
Compare this way of importing the tool:
With directly copying the raw source into OWUI's editor.
The gear icon will not show up for the import pattern, but it will show up for the raw source.
The user valves show up in the chat controls just fine in either case.
Logs & Screenshots
No errors.
Additional Information
The problem seems to be in
open_webui.routers.tools.py:49:This line relies on the full source code being put into the editor window, so it fails for the above pattern.
@rgaricano commented on GitHub (Sep 26, 2025):
@Simon-Stone commented on GitHub (Sep 26, 2025):
@rgaricano Yes, this is what it looks like when you paste in the full source. Does it also work for you when you use the import pattern?
@rgaricano commented on GitHub (Sep 26, 2025):
yes, it seem that work, & it install A LOT of packages without confirmation... I stopped because it overwrite my installed lib versions!!!
@Simon-Stone commented on GitHub (Sep 26, 2025):
It's surprising to me that it worked. I tried multiple times and it consistently did not. I also don't think I understand how it can work given how
has_user_valvesis determined.@rgaricano commented on GitHub (Sep 26, 2025):
Simon, I don't know if valves work or not with from dartmouth_chat_tools.create_document import Tools version, I didn't finish the requirement install of the tool, it seem that it do another openwebui installation & I'm not using docker or env.
@Simon-Stone commented on GitHub (Sep 26, 2025):
I see what you are saying. I removed the requirement of
open_webuifrom the package. Feel free to try again.@tjbck commented on GitHub (Sep 27, 2025):
Should be addressed with
54beeeaf72