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_image_edit_array_handling

Ishaan Jaffd5440f9614a8
diff --git a/tests/image_gen_tests/test_image_edits.py b/tests/image_gen_tests/test_image_edits.py
index 745993499d2..33dfbc4d52e 100644
--- a/tests/image_gen_tests/test_image_edits.py
+++ b/tests/image_gen_tests/test_image_edits.py
@@ -651,14 +651,7 @@ async def test_image_edit_array_handling():
image=TEST_IMAGES,
)
- # Test 3: Empty list (should fail validation)
- with pytest.raises(Exception):
- await aimage_edit(
- prompt=prompt,
- model="gpt-image-1",
- image=[],
- )
-
+
# Both valid calls should succeed
ImageResponse.model_validate(result1)
ImageResponse.model_validate(result2)