This commit is contained in:
Timothy Jaeryang Baek 2024-12-26 23:51:30 -08:00
parent b7baf4ddef
commit cd9dae0f3a

View File

@ -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)