We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ad448b commit 877bc23Copy full SHA for 877bc23
1 file changed
backend/open_webui/utils/middleware.py
@@ -2884,7 +2884,7 @@ async def background_tasks_handler(ctx):
2884
}
2885
)
2886
2887
- if title == None and len(messages) == 2:
+ if title == None and len(messages) == 2 and (not messages_map or len(messages_map) <= 2):
2888
title = messages[0].get('content', user_message)
2889
2890
Chats.update_chat_title_by_id(metadata['chat_id'], title)
0 commit comments