mirror of
https://github.com/open-webui/open-webui
synced 2024-12-28 06:42:47 +00:00
refac
This commit is contained in:
parent
b7baf4ddef
commit
cd9dae0f3a
@ -776,7 +776,10 @@ async def process_chat_response(
|
||||
"content",
|
||||
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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user