Просмотр исходного кода

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
Tim Baek 3 месяцев назад
Родитель
Сommit
7fc4c56ea3
1 измененных файлов с 0 добавлено и 1 удалено
  1. 0 1
      backend/open_webui/utils/middleware.py

+ 0 - 1
backend/open_webui/utils/middleware.py

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