mirror of
https://github.com/open-webui/open-webui.git
synced 2025-03-17 21:32:42 +01:00
Merge pull request #11079 from MeteorSkyOne/dev
fix: allow error returns None
This commit is contained in:
commit
376fce273e
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user