mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-11 20:05:19 +00:00
fix: bypass webloader
Co-Authored-By: WilliamGates <3852641+williamgateszhao@users.noreply.github.com>
This commit is contained in:
parent
7a1afa9c66
commit
f3cae94028
1 changed files with 4 additions and 0 deletions
|
|
@ -1867,6 +1867,10 @@ async def process_web_search(
|
|||
|
||||
try:
|
||||
if request.app.state.config.BYPASS_WEB_SEARCH_WEB_LOADER:
|
||||
search_results = [
|
||||
item for result in search_results for item in result if result
|
||||
]
|
||||
|
||||
docs = [
|
||||
Document(
|
||||
page_content=result.snippet,
|
||||
|
|
|
|||
Loading…
Reference in a new issue