Browse Source

fix: title gen

Timothy Jaeryang Baek 3 tháng trước cách đây
mục cha
commit
6658e67113
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      backend/open_webui/utils/middleware.py

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

@@ -909,7 +909,7 @@ async def process_chat_response(
                                     "title", "New Chat"
                                 )
                             except Exception as e:
-                                pass
+                                title = ""
 
                             if not title:
                                 title = messages[0].get("content", "New Chat")