Merge pull request #11079 from MeteorSkyOne/dev

fix: allow error returns None
This commit is contained in:
Timothy Jaeryang Baek 2025-03-03 14:57:54 -08:00 committed by GitHub
commit 376fce273e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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