Skip to content

Commit 0a7a265

Browse files
authored
Merge pull request open-webui#10445 from PkmX/pr-fix-web-search-proxy
fix: correctly interpret RAG_WEB_SEARCH_TRUST_ENV as bool
2 parents 93d486d + af10aba commit 0a7a265

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/open_webui/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1957,7 +1957,7 @@ class BannerModel(BaseModel):
19571957
RAG_WEB_SEARCH_TRUST_ENV = PersistentConfig(
19581958
"RAG_WEB_SEARCH_TRUST_ENV",
19591959
"rag.web.search.trust_env",
1960-
os.getenv("RAG_WEB_SEARCH_TRUST_ENV", False),
1960+
os.getenv("RAG_WEB_SEARCH_TRUST_ENV", "False").lower() == "true",
19611961
)
19621962

19631963
PLAYWRIGHT_WS_URI = PersistentConfig(

0 commit comments

Comments
 (0)