mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-11 20:05:19 +00:00
removing redundant asyncio.ensure_future() in retrieval.py
This commit is contained in:
parent
76e70128f6
commit
2a9f13a451
1 changed files with 5 additions and 7 deletions
|
|
@ -2064,13 +2064,11 @@ async def process_web_search(
|
||||||
)
|
)
|
||||||
|
|
||||||
search_tasks = [
|
search_tasks = [
|
||||||
asyncio.ensure_future(
|
run_in_threadpool(
|
||||||
run_in_threadpool(
|
search_web,
|
||||||
search_web,
|
request,
|
||||||
request,
|
request.app.state.config.WEB_SEARCH_ENGINE,
|
||||||
request.app.state.config.WEB_SEARCH_ENGINE,
|
query,
|
||||||
query,
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
for query in form_data.queries
|
for query in form_data.queries
|
||||||
]
|
]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue