mirror of
https://github.com/open-webui/open-webui.git
synced 2026-09-09 22:33:29 +00:00
refac
This commit is contained in:
parent
0ad448b8a4
commit
877bc23afc
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
Chats.update_chat_title_by_id(metadata['chat_id'], title)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue