enh/fix: google pse referer header

This commit is contained in:
Timothy Jaeryang Baek
2025-11-04 13:50:07 -05:00
parent 03f207b803
commit a4fd26b478
2 changed files with 6 additions and 0 deletions
+1
View File
@@ -1875,6 +1875,7 @@ def search_web(request: Request, engine: str, query: str) -> list[SearchResult]:
query,
request.app.state.config.WEB_SEARCH_RESULT_COUNT,
request.app.state.config.WEB_SEARCH_DOMAIN_FILTER_LIST,
referer=request.app.state.config.WEBUI_URL,
)
else:
raise Exception(