فهرست منبع

fix: allow error returns None

MeteorSky 2 ماه پیش
والد
کامیت
a01ef6cfa0
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      backend/open_webui/utils/chat.py

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

@@ -149,7 +149,7 @@ async def generate_direct_chat_completion(
             }
         )
 
-        if "error" in res:
+        if "error" in res and res["error"]:
             raise Exception(res["error"])
 
         return res