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]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
test: fix test
Krrish Dholakia23cad652569b
diff --git a/litellm/tests/test_image_generation.py b/litellm/tests/test_image_generation.pyindex e59cf286519..fcbaa745795 100644--- a/litellm/tests/test_image_generation.py+++ b/litellm/tests/test_image_generation.py@@ -194,6 +194,9 @@ async def test_aimage_generation_bedrock_with_optional_params():pytest.fail(f"An exception occurred - {str(e)}")+from openai.types.image import Image++@pytest.mark.parametrize("sync_mode", [True, False])@pytest.mark.asyncioasync def test_aimage_generation_vertex_ai(sync_mode):@@ -218,7 +221,7 @@ async def test_aimage_generation_vertex_ai(sync_mode):assert len(response.data) > 0for d in response.data:- assert isinstance(d, litellm.ImageObject)+ assert isinstance(d, Image)print("data in response.data", d)assert d.b64_json is not Noneexcept litellm.ServiceUnavailableError as e: