mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-11 16:26:07 +00:00
(fix) img gen endpoints unstable
This commit is contained in:
@@ -201,7 +201,7 @@ async def image_generation(session, key):
|
||||
if (
|
||||
"Connection error" in response_text
|
||||
): # OpenAI endpoint returns a connection error
|
||||
pass
|
||||
return
|
||||
raise Exception(f"Request did not return a 200 status code: {status}")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user