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

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