Originally created by @Simon-Stone on GitHub (Sep 26, 2025).
Check Existing Issues
I have searched for any existing and/or related issues.
I have searched for any existing and/or related discussions.
I am using the latest version of Open WebUI.
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
I have read and followed all instructions in README.md.
I am using the latest version of both Open WebUI and Ollama.
I have included the browser console logs.
I have included the Docker container logs.
I have provided every relevant configuration, setting, and environment variable used in my setup.
I have clearly listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc).
I have documented step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation. My steps:
Start with the initial platform/version/OS and dependencies used,
Specify exact install/launch/configure commands,
List URLs visited, user input (incl. example values/emails/passwords if needed),
Describe all options and toggles enabled or changed,
Include any files or environmental changes,
Identify the expected and actual result at each stage,
Ensure any reasonably skilled user can follow and hit the same issue.
Expected Behavior
When using this pattern for Tools the gear menu should show in the integrations menu if the imported Tools class contains user valves:
"""
title: Create Document
author: Simon Stone
requirements: git+https://github.com/dartmouth/dartmouth-chat-tools.git@dev
version: 0.1.0
"""
from dartmouth_chat_tools.create_document import Tools
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:
"""
title: Create Document
author: Simon Stone
requirements: git+https://github.com/dartmouth/dartmouth-chat-tools.git@dev
version: 0.1.0
"""
from dartmouth_chat_tools.create_document import Tools
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:
"has_user_valves": "class UserValves(BaseModel):" in tool.content,
This line relies on the full source code being put into the editor window, so it fails for the above pattern.
Originally created by @Simon-Stone on GitHub (Sep 26, 2025).
### Check Existing Issues
- [x] I have searched for any existing and/or related issues.
- [x] I have searched for any existing and/or related discussions.
- [x] I am using the latest version of Open WebUI.
### 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
- [x] I have read and followed all instructions in `README.md`.
- [x] I am using the latest version of **both** Open WebUI and Ollama.
- [x] I have included the browser console logs.
- [x] I have included the Docker container logs.
- [x] I have **provided every relevant configuration, setting, and environment variable used in my setup.**
- [x] I have clearly **listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup** (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc).
- [x] I have documented **step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation**. My steps:
- Start with the initial platform/version/OS and dependencies used,
- Specify exact install/launch/configure commands,
- List URLs visited, user input (incl. example values/emails/passwords if needed),
- Describe all options and toggles enabled or changed,
- Include any files or environmental changes,
- Identify the expected and actual result at each stage,
- Ensure any reasonably skilled user can follow and hit the same issue.
### Expected Behavior
When using this pattern for Tools the gear menu should show in the integrations menu if the imported `Tools` class contains user valves:
```
"""
title: Create Document
author: Simon Stone
requirements: git+https://github.com/dartmouth/dartmouth-chat-tools.git@dev
version: 0.1.0
"""
from dartmouth_chat_tools.create_document import Tools
```
### 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:
```
"""
title: Create Document
author: Simon Stone
requirements: git+https://github.com/dartmouth/dartmouth-chat-tools.git@dev
version: 0.1.0
"""
from dartmouth_chat_tools.create_document import Tools
```
With directly copying [the raw source](https://github.com/dartmouth/dartmouth-chat-tools/blob/main/src/dartmouth_chat_tools/create_document.py) 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`:
```
"has_user_valves": "class UserValves(BaseModel):" in tool.content,
```
This line relies on the full source code being put into the editor window, so it fails for the above pattern.
GiteaMirror
added the bug label 2025-11-11 16:57:39 -06:00
@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?
@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?
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_valves is determined.
@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_valves` is determined.
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.
@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.
I see what you are saying. I removed the requirement of open_webui from the package. Feel free to try again.
@Simon-Stone commented on GitHub (Sep 26, 2025):
I see what you are saying. I removed the requirement of `open_webui` from the package. Feel free to try again.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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