fix: replace blocked image URLs with GitHub-hosted

The previous image URLs were sometimes blocked by Cloudflare, causing
test failures for some users. This update replaces them with a
GitHub-hosted image (`dog.png`) from the `llama-stack` repository,
ensuring more reliable access during testing.

Signed-off-by: Sébastien Han <seb@redhat.com>
This commit is contained in:
Sébastien Han 2025-02-10 09:29:04 +01:00
parent 8186c88021
commit 3df95a07a0
No known key found for this signature in database
2 changed files with 4 additions and 6 deletions

View file

@ -39,7 +39,7 @@ class TestVisionModelInference:
ImageContentItem( ImageContentItem(
image=dict( image=dict(
url=URL( url=URL(
uri="https://www.healthypawspetinsurance.com/Images/V3/DogAndPuppyInsurance/Dog_CTA_Desktop_HeroImage.jpg" uri="https://raw.githubusercontent.com/meta-llama/llama-stack/main/tests/client-sdk/inference/dog.png"
) )
) )
), ),
@ -80,7 +80,7 @@ class TestVisionModelInference:
ImageContentItem( ImageContentItem(
image=dict( image=dict(
url=URL( url=URL(
uri="https://www.healthypawspetinsurance.com/Images/V3/DogAndPuppyInsurance/Dog_CTA_Desktop_HeroImage.jpg" uri="https://raw.githubusercontent.com/meta-llama/llama-stack/main/tests/client-sdk/inference/dog.png"
) )
) )
), ),

View file

@ -43,8 +43,7 @@ def test_image_chat_completion_non_streaming(llama_stack_client, vision_model_id
"type": "image", "type": "image",
"image": { "image": {
"url": { "url": {
# TODO: Replace with Github based URI to resources/sample1.jpg "uri": "https://raw.githubusercontent.com/meta-llama/llama-stack/main/tests/client-sdk/inference/dog.png"
"uri": "https://www.healthypawspetinsurance.com/Images/V3/DogAndPuppyInsurance/Dog_CTA_Desktop_HeroImage.jpg"
}, },
}, },
}, },
@ -72,8 +71,7 @@ def test_image_chat_completion_streaming(llama_stack_client, vision_model_id):
"type": "image", "type": "image",
"image": { "image": {
"url": { "url": {
# TODO: Replace with Github based URI to resources/sample1.jpg "uri": "https://raw.githubusercontent.com/meta-llama/llama-stack/main/tests/client-sdk/inference/dog.png"
"uri": "https://www.healthypawspetinsurance.com/Images/V3/DogAndPuppyInsurance/Dog_CTA_Desktop_HeroImage.jpg"
}, },
}, },
}, },