mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 02:48:13 -05:00
[PR #20366] [MERGED] feat: Add configurable DDGS backend selection with UI support #41210
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/20366
Author: @Classic298
Created: 1/4/2026
Status: ✅ Merged
Merged: 1/4/2026
Merged by: @tjbck
Base:
dev← Head:ddgs📝 Commits (3)
75ca0e6initeed1d6fUpdate WebSearch.svelte7b4f773reorder📊 Changes
5 files changed (+45 additions, -1 deletions)
View changed files
📝
backend/open_webui/config.py(+6 -0)📝
backend/open_webui/main.py(+2 -0)📝
backend/open_webui/retrieval/web/duckduckgo.py(+3 -1)📝
backend/open_webui/routers/retrieval.py(+4 -0)📝
src/lib/components/admin/Settings/WebSearch.svelte(+30 -0)📄 Description
Summary
This PR fixes issue #20330 by replacing the invalid "lite" backend with a configurable backend option for the DDGS (Dux Distributed Global Search) web search engine.
Problem
The DDGS library was being called with backend="lite", which is not a valid backend option. This caused KeyError warnings in the logs and forced the library to fall back to "auto" mode, which randomly selects from available providers (including Google, Brave, Yahoo, etc.) - not what users expected when selecting "DDGS" as their search engine.
Solution
Closes #20330
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.