Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

test(test_image_generation.py): handle azure api error

Krrish Dholakiafd3a6f087060
diff --git a/litellm/tests/test_image_generation.py b/litellm/tests/test_image_generation.py
index 91bb5846507..b260f26ecbc 100644
--- a/litellm/tests/test_image_generation.py
+++ b/litellm/tests/test_image_generation.py
@@ -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: