mirror of
https://github.com/open-webui/open-webui.git
synced 2025-09-28 20:43:12 +02:00
fix: allow error returns None
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user