瀏覽代碼

fix: title gen

Timothy Jaeryang Baek 3 月之前
父節點
當前提交
6658e67113
共有 1 個文件被更改,包括 1 次插入1 次删除
  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")