mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[PR #18205] [CLOSED] Fix web search memory leak nul chars #24703
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/18205
Author: @lokiee0
Created: 10/10/2025
Status: ❌ Closed
Base:
main← Head:fix-web-search-memory-leak-nul-chars📝 Commits (3)
5f584abAdd setup documentation and configuration files66e1360Fix memory leak and NUL character issues in web search924c849Add comprehensive pull request template for web search fix📊 Changes
11 files changed (+804 additions, -560 deletions)
View changed files
➕
FIX_MEMORY_LEAK_AND_NUL_CHARS.md(+57 -0)➕
PULL_REQUEST_TEMPLATE.md(+86 -0)➕
SETUP_STATUS.md(+125 -0)📝
backend/open_webui/retrieval/vector/dbs/pgvector.py(+6 -2)📝
backend/open_webui/retrieval/vector/utils.py(+30 -3)📝
backend/open_webui/routers/retrieval.py(+49 -22)➕
litellm_config.yaml(+23 -0)📝
package-lock.json(+113 -533)📝
package.json(+1 -0)➕
test_backend.py(+95 -0)➕
test_web_search_fix.py(+219 -0)📄 Description
Problem
Google PSE web search has critical issues:
Solution
1. Fixed NUL Character Errors
\x00and control characters2. Fixed Memory Leak
3. Improved Stability
Files Changed
backend/open_webui/retrieval/vector/utils.py- Text cleaningbackend/open_webui/retrieval/vector/dbs/pgvector.py- Database fixbackend/open_webui/routers/retrieval.py- Memory managementTesting
Impact
Resolves #18201
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.