mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-14 23:21:35 +00:00
fix(test): update openrouter image generation assertion to accept any image format
gemini-2.5-flash-image returns JPEG, not PNG. The assertion was hardcoded
to png after the model was swapped from gemini-2.5-flash-image-preview
(which returned PNG) in commit 34e8e972.
This commit is contained in:
parent
596ae55108
commit
30476bc35b
1 changed files with 1 additions and 1 deletions
|
|
@ -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/")
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue