forked from phoenix/litellm-mirror
(fix) img gen endpoints unstable
This commit is contained in:
parent
365497e860
commit
75614bc29c
1 changed files with 1 additions and 1 deletions
|
@ -201,7 +201,7 @@ async def image_generation(session, key):
|
||||||
if (
|
if (
|
||||||
"Connection error" in response_text
|
"Connection error" in response_text
|
||||||
): # OpenAI endpoint returns a connection error
|
): # OpenAI endpoint returns a connection error
|
||||||
pass
|
return
|
||||||
raise Exception(f"Request did not return a 200 status code: {status}")
|
raise Exception(f"Request did not return a 200 status code: {status}")
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue