mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 12:25:20 +00:00
fix: allow error returns None
This commit is contained in:
parent
c7d4d2e41f
commit
a01ef6cfa0
1 changed files with 1 additions and 1 deletions
|
|
@ -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"])
|
raise Exception(res["error"])
|
||||||
|
|
||||||
return res
|
return res
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue