mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 11:43:54 +00:00
fix(utils.py): fix exception mapping for azure internal server error
This commit is contained in:
parent
ea4334f760
commit
6f3468aee4
6 changed files with 6 additions and 3 deletions
|
@ -76,7 +76,7 @@ def test_image_generation_azure_dall_e_3():
|
|||
)
|
||||
print(f"response: {response}")
|
||||
assert len(response.data) > 0
|
||||
except litellm.RateLimitError as e:
|
||||
except litellm.InternalServerError as e:
|
||||
pass
|
||||
except litellm.ContentPolicyViolationError:
|
||||
pass # OpenAI randomly raises these errors - skip when they occur
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue