소스 검색

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"
                                     "title", "New Chat"
                                 )
                                 )
                             except Exception as e:
                             except Exception as e:
-                                pass
+                                title = ""
 
 
                             if not title:
                             if not title:
                                 title = messages[0].get("content", "New Chat")
                                 title = messages[0].get("content", "New Chat")