Skip to content

Commit

Permalink
fix: update image url in multimodal test
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanleomk committed Nov 21, 2024
1 parent 7fa8bb0 commit 7485747
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions tests/llm/test_openai/test_multimodal.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@


audio_url = "https://www2.cs.uic.edu/~i101/SoundFiles/gettysburg.wav"
image_url = "https://retail.degroot-inc.com/wp-content/uploads/2024/01/AS_Blueberry_Patriot_1-605x605.jpg"


def gettysburg_audio():
Expand Down Expand Up @@ -69,9 +70,7 @@ def test_multimodal_image_description(model, mode, client):
"role": "user",
"content": [
"What is this?",
Image.from_url(
"https://pbs.twimg.com/profile_images/1816950591857233920/ZBxrWCbX_400x400.jpg"
),
Image.from_url(image_url),
],
},
],
Expand Down Expand Up @@ -101,11 +100,11 @@ def test_multimodal_image_description_autodetect(model, mode, client):
"role": "user",
"content": [
"What is this?",
"https://pbs.twimg.com/profile_images/1816950591857233920/ZBxrWCbX_400x400.jpg",
image_url,
],
},
],
autodetect_images=True
autodetect_images=True,
)

# Assertions to validate the response
Expand All @@ -131,7 +130,7 @@ def test_multimodal_image_description_autodetect_no_response_model(model, mode,
},
{
"role": "user",
"content": "https://pbs.twimg.com/profile_images/1816950591857233920/ZBxrWCbX_400x400.jpg",
"content": image_url,
},
],
max_tokens=1000,
Expand Down

0 comments on commit 7485747

Please sign in to comment.