mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 12:25:20 +00:00
refac
This commit is contained in:
parent
47cd0770e4
commit
0202926e35
1 changed files with 3 additions and 1 deletions
|
|
@ -2441,7 +2441,9 @@ async def process_chat_response(
|
|||
|
||||
# background_tasks.add_task(response_handler, response, events)
|
||||
task_id, _ = await create_task(
|
||||
request, response_handler(response, events), id=metadata["chat_id"]
|
||||
request.app.state.redis,
|
||||
response_handler(response, events),
|
||||
id=metadata["chat_id"],
|
||||
)
|
||||
return {"status": True, "task_id": task_id}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue