mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-27 11:57:13 -05:00
[GH-ISSUE #7467] enh: Link to the configured search query URL instead of Google.com in responses #30286
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 @nschulzke on GitHub (Nov 29, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/7467
Feature Request
Is your feature request related to a problem? Please describe.
I just set up search with a self-hosted SearXNG, and initially I thought I'd configured it wrong because the link under "Searched 3 sites" was to google.com. On investigation it appears that this is because google.com is hard-coded into the view, so it will always use that no matter what engine is set up.
Describe the solution you'd like
If possible, the ideal solution would be to link to the configured search provider, whichever that is. I haven't dug into it yet, but I imagine that the backend is already building a URL somehow and that this URL could be returned to the frontend.
This may be more complicated for engines that are configured with API keys, and I'm not sure what your preferred approach to handling that would be. If certain engines don't have an obvious URL to link to, could we default to google.com for those but still support linking directly to the easy engines?
Describe alternatives you've considered
We could leave it as is, but it's somewhat confusing for someone who isn't using google.com as their search, and requires a bit of extra work to get to the same search results page that the model used.
Additional context
I'm happy to do the implementation work for this, I just want to get feedback from the maintainers on if this is something you'd integrate and if so if there are any considerations for compatibility with all the different search engines. SearXNG is relatively straightforward, but other engines may not be as obvious.
Screenshot showing the link I'm talking about: