mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-15 21:19:39 -05:00
[PR #24776] [CLOSED] feat: add optional web search warning #98871
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?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/24776
Author: @DuncanSARapp
Created: 5/15/2026
Status: ❌ Closed
Base:
dev← Head:codex/web-search-warning📝 Commits (1)
cdeb60cfeat: add optional web search warning📊 Changes
68 files changed (+170 additions, -0 deletions)
View changed files
📝
backend/open_webui/config.py(+6 -0)📝
backend/open_webui/main.py(+3 -0)📝
backend/open_webui/routers/retrieval.py(+5 -0)📝
src/lib/components/admin/Settings/WebSearch.svelte(+10 -0)📝
src/lib/components/chat/MessageInput.svelte(+21 -0)📝
src/lib/i18n/locales/ar-BH/translation.json(+2 -0)📝
src/lib/i18n/locales/ar/translation.json(+2 -0)📝
src/lib/i18n/locales/az-AZ/translation.json(+2 -0)📝
src/lib/i18n/locales/bg-BG/translation.json(+2 -0)📝
src/lib/i18n/locales/bn-BD/translation.json(+2 -0)📝
src/lib/i18n/locales/bo-TB/translation.json(+2 -0)📝
src/lib/i18n/locales/bs-BA/translation.json(+2 -0)📝
src/lib/i18n/locales/ca-ES/translation.json(+2 -0)📝
src/lib/i18n/locales/ceb-PH/translation.json(+2 -0)📝
src/lib/i18n/locales/cs-CZ/translation.json(+2 -0)📝
src/lib/i18n/locales/da-DK/translation.json(+2 -0)📝
src/lib/i18n/locales/de-DE/translation.json(+2 -0)📝
src/lib/i18n/locales/dg-DG/translation.json(+2 -0)📝
src/lib/i18n/locales/el-GR/translation.json(+2 -0)📝
src/lib/i18n/locales/en-GB/translation.json(+2 -0)...and 48 more files
📄 Description
Pull Request Checklist
Note to first-time contributors: A discussion has been opened before this PR: https://github.com/open-webui/open-webui/discussions/24772
Before submitting, make sure you've checked the following:
devbranch.dev, and contains no unrelated commits.featprefix.Description
This PR adds an optional user-facing warning for Web Search.
The warning is controlled by a new Admin Panel -> Settings -> Web Search toggle and defaults to off, so existing behavior is unchanged.
The main use case is managed or regulated deployments where administrators want a clear point-of-use notice when Web Search can send queries to a configured search provider.
When enabled, the chat input shows:
The warning is only shown when Web Search is active for the current message, including when the user's "Web Search in Chat" preference is set to "Always".
No new dependencies are added.
Changed
ENABLE_WEB_SEARCH_WARNINGconfig flag that defaults to off.Testing
Tested locally with:
podman build --env NODE_OPTIONS=--max-old-space-size=4096 --build-arg USE_SLIM=true --build-arg BUILD_HASH=cdeb60c54 -t localhost/open-webui-warning:web-search-warning .OLLAMA_BASE_URL=http://host.containers.internal:11434ENABLE_WEB_SEARCH=TrueENABLE_WEB_SEARCH_WARNING=TrueGET /health{"status": true}Documentation
This PR introduces a user-facing optional warning and the
ENABLE_WEB_SEARCH_WARNINGconfig flag.A follow-up Open WebUI Docs PR will document:
ENABLE_WEB_SEARCH_WARNINGI can open the docs PR once maintainers confirm the setting name and wording.
Security Considerations
AI-assisted Code Note
This PR was AI-assisted, but the changes were manually reviewed and manually tested by the author. The implementation was verified in a running Open WebUI container, including the steps listed above.
Changelog Entry
Description
Added
ENABLE_WEB_SEARCH_WARNINGconfig flag.Changed
Deprecated
Removed
Fixed
Security
Breaking Changes
Additional Information
dev.Screenshots or Videos
Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.