This commit is contained in:
Timothy Jaeryang Baek
2026-03-21 18:42:55 -05:00
parent 0ad448b8a4
commit 877bc23afc
+1 -1
View File
@@ -2884,7 +2884,7 @@ async def background_tasks_handler(ctx):
} }
) )
if title == None and len(messages) == 2: if title == None and len(messages) == 2 and (not messages_map or len(messages_map) <= 2):
title = messages[0].get('content', user_message) title = messages[0].get('content', user_message)
Chats.update_chat_title_by_id(metadata['chat_id'], title) Chats.update_chat_title_by_id(metadata['chat_id'], title)