mirror of
https://github.com/open-webui/open-webui
synced 2025-01-31 15:01:00 +00:00
refac
This commit is contained in:
parent
d94134ad2d
commit
79ce6e0a3f
@ -750,7 +750,7 @@ async def process_chat_response(
|
|||||||
):
|
):
|
||||||
async def background_tasks_handler():
|
async def background_tasks_handler():
|
||||||
message_map = Chats.get_messages_by_chat_id(metadata["chat_id"])
|
message_map = Chats.get_messages_by_chat_id(metadata["chat_id"])
|
||||||
message = message_map.get(metadata["message_id"])
|
message = message_map.get(metadata["message_id"]) if message_map else None
|
||||||
|
|
||||||
if message:
|
if message:
|
||||||
messages = get_message_list(message_map, message.get("id"))
|
messages = get_message_list(message_map, message.get("id"))
|
||||||
|
Loading…
Reference in New Issue
Block a user