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): update openrouter image generation assertion for gemini-2.5-flash-image (#23070)

Ishaan Jaff34984d22ae30
diff --git a/tests/llm_translation/test_openrouter.py b/tests/llm_translation/test_openrouter.py
index ba70e99ebce..1c75e6d664d 100644
--- a/tests/llm_translation/test_openrouter.py
+++ b/tests/llm_translation/test_openrouter.py
@@ -30,7 +30,7 @@ def test_completion_openrouter_image_generation():
assert (
resp.choices[0]
.message.images[0]["image_url"]["url"]
- .startswith("data:image/png;base64,")
+ .startswith("data:image/")
)