Merge pull request #18761 from acomarcho/fix/chat-title-not-generated-if-title-auto-generation-is-off
fix: chat title not generated if title auto generation is off in interface settings
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user