Skip to content

Commit

Permalink
update URL import, URL -> ImageContentItemImageURL
Browse files Browse the repository at this point in the history
  • Loading branch information
mattf committed Feb 21, 2025
1 parent 34226d6 commit 559d63e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/client-sdk/inference/test_embedding.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@
import pytest
from llama_stack_client.types import EmbeddingsResponse
from llama_stack_client.types.shared.interleaved_content import (
URL,
ImageContentItem,
ImageContentItemImage,
ImageContentItemImageURL,
TextContentItem,
)

Expand All @@ -59,7 +59,7 @@
DUMMY_TEXT2 = TextContentItem(text=DUMMY_STRING2, type="text")
# TODO(mf): add a real image URL and base64 string
DUMMY_IMAGE_URL = ImageContentItem(
image=ImageContentItemImage(url=URL(uri="https://example.com/image.jpg")), type="image"
image=ImageContentItemImage(url=ImageContentItemImageURL(uri="https://example.com/image.jpg")), type="image"
)
DUMMY_IMAGE_BASE64 = ImageContentItem(image=ImageContentItemImage(data="base64string"), type="image")

Expand Down

0 comments on commit 559d63e

Please sign in to comment.