mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 06:03:26 -05:00
[GH-ISSUE #10556] WebSearch button broken #15933
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 @duluk on GitHub (Feb 22, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/10556
The
WebSearchbutton under the chat input box doesn't toggle. I have enabled Web Search in the settings, but there's no way to toggle it off. I can toggle theCode Interpreterbut notWebSearch.It remains blue regardless. And the line above the chat box, 'Search the internet', remains on the screen with the blue dot.
Installation Method
I'm using the latest version of Open WebUI with the Docker installation, using this command:
Environment
Open WebUI Version: v0.5.16
Ollama (if applicable): v0.5.11
Operating System: Linux, macOS, Windows
Browser (if applicable): Chrome, Brave, Safari (all up to date)
Confirmation:
I have looked at the Docker container logs but nothing stand out. I have traced it through browser dev tools but haven't found the issue yet. I looked at the code, but I'm not a Svelte (or web) developer. Nothing stands immediately out there either.
Expected Behavior:
Clicking the
WebSearchbutton would toggle web search functionality on and off, like theCode Interpreterbutton (which does toggle btw).Actual Behavior:
Nothing. The click has no effect. WebSearch is used for each query. (though FWIW, the web search functionality works fine as far as I can tell)
Description
Bug Summary:
See above.
Reproduction Details
Steps to Reproduce:
Install Open WebUI with docker and enable Web Search in the settings (Admin Panel).
Logs and Screenshots
I don't see the usefulness in providing a screenshot. You will just see the
WebSearchbutton highlighted blue as enabled. Clicking does nothing.Additional Information
Two things:
Note
If the bug report is incomplete or does not follow the provided instructions, it may not be addressed. Please ensure that you have followed the steps outlined in the README.md and troubleshooting.md documents, and provide all necessary information for us to reproduce and address the issue. Thank you!
@silentoplayz commented on GitHub (Feb 22, 2025):
Set

Web Search in ChatfromAlwaystoDefaultin theInterfaceuser settings menu.@duluk commented on GitHub (Feb 22, 2025):
HA. Yep. Like I said, I may be doing something dumb.
Works beautifully now. Thank you! (no wonder I couldn't see what was wrong in the code...)
And yeah, I missed this:
($settings?.webSearch ?? false) === 'always'