test(test_image_generation.py): handle azure api error

This commit is contained in:
Krrish Dholakia 2024-08-21 21:46:00 -07:00
parent 3fa4e5971f
commit ea247bbc4d

View file

@ -116,6 +116,8 @@ async def test_async_image_generation_openai():
)
print(f"response: {response}")
assert len(response.data) > 0
except litellm.APIError:
pass
except litellm.RateLimitError as e:
pass
except litellm.ContentPolicyViolationError: