mirror of
https://github.com/open-webui/open-webui
synced 2024-12-29 15:25:29 +00:00
refac
This commit is contained in:
parent
b7baf4ddef
commit
cd9dae0f3a
@ -776,7 +776,10 @@ async def process_chat_response(
|
|||||||
"content",
|
"content",
|
||||||
message.get("content", "New Chat"),
|
message.get("content", "New Chat"),
|
||||||
)
|
)
|
||||||
)
|
).strip()
|
||||||
|
|
||||||
|
if not title:
|
||||||
|
title = messages[0].get("content", "New Chat")
|
||||||
|
|
||||||
Chats.update_chat_title_by_id(metadata["chat_id"], title)
|
Chats.update_chat_title_by_id(metadata["chat_id"], title)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user