mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-28 04:04:31 +00:00
test(test_image_generation.py): handle azure api error
This commit is contained in:
parent
3fa4e5971f
commit
ea247bbc4d
1 changed files with 2 additions and 0 deletions
|
@ -116,6 +116,8 @@ async def test_async_image_generation_openai():
|
||||||
)
|
)
|
||||||
print(f"response: {response}")
|
print(f"response: {response}")
|
||||||
assert len(response.data) > 0
|
assert len(response.data) > 0
|
||||||
|
except litellm.APIError:
|
||||||
|
pass
|
||||||
except litellm.RateLimitError as e:
|
except litellm.RateLimitError as e:
|
||||||
pass
|
pass
|
||||||
except litellm.ContentPolicyViolationError:
|
except litellm.ContentPolicyViolationError:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue