mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 20:07:49 +01:00
refac
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user