mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
fix test images gemini
This commit is contained in:
parent
6400552308
commit
e37c1069a1
1 changed files with 5 additions and 3 deletions
|
|
@ -265,9 +265,11 @@ def test_gemini_image_generation():
|
|||
#########################################################
|
||||
# Important: Validate we did get an image in the response
|
||||
#########################################################
|
||||
assert response.choices[0].message.image is not None
|
||||
assert response.choices[0].message.image["url"] is not None
|
||||
assert response.choices[0].message.image["url"].startswith("data:image/png;base64,")
|
||||
assert response.choices[0].message.images is not None
|
||||
assert len(response.choices[0].message.images) > 0
|
||||
assert response.choices[0].message.images[0]["image_url"] is not None
|
||||
assert response.choices[0].message.images[0]["image_url"]["url"] is not None
|
||||
assert response.choices[0].message.images[0]["image_url"]["url"].startswith("data:image/png;base64,")
|
||||
|
||||
|
||||
def test_gemini_thinking():
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue