fix: titles are not generated if title auto-generation is set to false in interface settings

This commit is contained in:
acomarcho 2025-11-01 00:07:59 +07:00
parent f18f1db704
commit 15cc9b6cee

View file

@ -1545,7 +1545,6 @@ async def process_chat_response(
): # Only update titles and tags for non-temp chats ): # Only update titles and tags for non-temp chats
if ( if (
TASKS.TITLE_GENERATION in tasks TASKS.TITLE_GENERATION in tasks
and tasks[TASKS.TITLE_GENERATION]
): ):
user_message = get_last_user_message(messages) user_message = get_last_user_message(messages)
if user_message and len(user_message) > 100: if user_message and len(user_message) > 100: