mirror of
https://github.com/open-webui/open-webui.git
synced 2026-06-05 00:10:27 -05:00
[GH-ISSUE #24237] issue: Internal tools are not injected when tools are set in Filter function #74839
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 @moritzderallerechte on GitHub (Apr 29, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/24237
Check Existing Issues
Installation Method
Git Clone
Open WebUI Version
v0.9.2
Ollama Version (if applicable)
No response
Operating System
Ubuntu
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
When the inlet function of a filter writes to the tool field of the request body, OWUI should still inject the internal tools.
Actual Behavior
When the inlet sets the tools field, all other internal tools are omitted.
Steps to Reproduce
My filter inlet function does this:
Logs & Screenshots
The provided code produces the follwing logs:
When logging the tools afterwards in a pipe() function, it should for example look like this:
but it actually looks like this:
Additional Information
To add a little context to this:
I am doing the described stuff in the filter function, since it allows me to use the nice UI integration buttons to enable and disable web search.
@ER-EPR commented on GitHub (May 5, 2026):
Also the case when I add {"google_search":{}} into tool list. Did your filter works well with openrouter.
@tjbck commented on GitHub (May 8, 2026):
Addressed in dev.