Bug title
issue: Gemini-3-Pro cannot work with Google Search Tool Filter
Describe the bug
When using the Google Gemini: gemini-3-pro-preview model with the Google Search Tool Filter enabled and web_search activated, an error occurs:
Steps to reproduce
- Enable Google Gemini Pipeline
- Enable Google Search Tool Filter
- Enable
web_search feature
- Ask
gemini-3-pro-preview model: "Today News"
- An error occurs
Environment
OpenWebUI 0.6.40
API Provider: OpenRouter
All pipelines are latest
Additional context
https://github.com/owndev/Open-WebUI-Functions/blob/main/pipelines/google/google_gemini.py#L1896
I noticed that enabling the google_search_tool feature adds two tools. However, based on the error message, if Google Search is enabled, no additional tools should be added.
After commenting out the code, everything worked fine.
Bug title
issue: Gemini-3-Pro cannot work with Google Search Tool Filter
Describe the bug
When using the
Google Gemini: gemini-3-pro-previewmodel with theGoogle Search Tool Filterenabled andweb_searchactivated, an error occurs:Steps to reproduce
web_searchfeaturegemini-3-pro-previewmodel: "Today News"Environment
OpenWebUI 0.6.40
API Provider: OpenRouter
All pipelines are latest
Additional context
https://github.com/owndev/Open-WebUI-Functions/blob/main/pipelines/google/google_gemini.py#L1896
I noticed that enabling the google_search_tool feature adds two tools. However, based on the error message, if Google Search is enabled, no additional tools should be added.
After commenting out the code, everything worked fine.