From af10aba805119c58a02b228d72a9fb2923f77387 Mon Sep 17 00:00:00 2001 From: PkmX Date: Fri, 21 Feb 2025 01:46:17 +0800 Subject: [PATCH] fix: correctly interpret RAG_WEB_SEARCH_TRUST_ENV as bool --- backend/open_webui/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/open_webui/config.py b/backend/open_webui/config.py index 325ba486d..80bc339b5 100644 --- a/backend/open_webui/config.py +++ b/backend/open_webui/config.py @@ -1957,7 +1957,7 @@ RAG_WEB_LOADER_ENGINE = PersistentConfig( RAG_WEB_SEARCH_TRUST_ENV = PersistentConfig( "RAG_WEB_SEARCH_TRUST_ENV", "rag.web.search.trust_env", - os.getenv("RAG_WEB_SEARCH_TRUST_ENV", False), + os.getenv("RAG_WEB_SEARCH_TRUST_ENV", "False").lower() == "true", ) PLAYWRIGHT_WS_URI = PersistentConfig(