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]

fix test test_aimage_generation_vertex_ai

Ishaan Jaff1c1631222c84
diff --git a/litellm/tests/test_image_generation.py b/litellm/tests/test_image_generation.py
index e59cf286519..6648b202b9d 100644
--- a/litellm/tests/test_image_generation.py
+++ b/litellm/tests/test_image_generation.py
@@ -7,6 +7,7 @@ import sys
import traceback
from dotenv import load_dotenv
+from openai.types.image import Image
logging.basicConfig(level=logging.DEBUG)
load_dotenv()
@@ -218,7 +219,7 @@ async def test_aimage_generation_vertex_ai(sync_mode):
assert len(response.data) > 0
for 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 None
except litellm.ServiceUnavailableError as e: