🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/open-webui/open-webui/pull/24209
**Author:** [@PHclaw](https://github.com/PHclaw)
**Created:** 4/29/2026
**Status:** 🔄 Open
**Base:** `main` ← **Head:** `fix/searxng-language`
---
### 📝 Commits (2)
- [`f7ce612`](https://github.com/open-webui/open-webui/commit/f7ce612d03d39a55d430e79f9183cd5d4ab854c9) fix: handle ddgs.text() returning None (ddgs >= 9.x API change)
- [`f423a42`](https://github.com/open-webui/open-webui/commit/f423a42a2fa3b973a3e0986d6ac1cbe6ec57f6cd) fix: handle language as list for SearXNG (multiple language selection)
### 📊 Changes
**2 files changed** (+6 additions, -1 deletions)
<details>
<summary>View changed files</summary>
📝 `backend/open_webui/retrieval/web/duckduckgo.py` (+4 -1)
📝 `backend/open_webui/retrieval/web/searxng.py` (+2 -0)
</details>
### 📄 Description
## Summary
When language is passed as a list (e.g., ['en', 'zh']), it needs to be joined with comma for SearXNG.
## Fix
In `backend/open_webui/retrieval/web/searxng.py`:
```python
language = kwargs.get('language', 'all')
if isinstance(language, list):
language = ','.join(language)
```
This fixes issue #24198 where SearXNG search fails when multiple languages are selected.
Closes #24198
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/24209
Author: @PHclaw
Created: 4/29/2026
Status: 🔄 Open
Base:
main← Head:fix/searxng-language📝 Commits (2)
f7ce612fix: handle ddgs.text() returning None (ddgs >= 9.x API change)f423a42fix: handle language as list for SearXNG (multiple language selection)📊 Changes
2 files changed (+6 additions, -1 deletions)
View changed files
📝
backend/open_webui/retrieval/web/duckduckgo.py(+4 -1)📝
backend/open_webui/retrieval/web/searxng.py(+2 -0)📄 Description
Summary
When language is passed as a list (e.g., ['en', 'zh']), it needs to be joined with comma for SearXNG.
Fix
In
backend/open_webui/retrieval/web/searxng.py:This fixes issue #24198 where SearXNG search fails when multiple languages are selected.
Closes #24198
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.