Skip to content

Commit 93b9705

Browse files
authored
Merge pull request #317 from webmaxru/patch-1
Setting correct parameter name for ImageContentItem (image -> image_url)
2 parents 570ceae + 5e8a715 commit 93b9705

File tree

1 file changed

+2
-2
lines changed
  • articles/ai-foundry/model-inference/includes/use-chat-multi-modal

1 file changed

+2
-2
lines changed

articles/ai-foundry/model-inference/includes/use-chat-multi-modal/python.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ response = client.complete(
105105
SystemMessage("You are a helpful assistant that can generate responses based on images."),
106106
UserMessage(content=[
107107
TextContentItem(text="Which conclusion can be extracted from the following chart?"),
108-
ImageContentItem(image=ImageUrl(url=data_url))
108+
ImageContentItem(image_url=ImageUrl(url=data_url))
109109
]),
110110
],
111111
temperature=1,
@@ -214,4 +214,4 @@ response = client.complete(
214214
)
215215
```
216216

217-
Audio is broken into tokens and submitted to the model for processing. Some models might operate directly over audio tokens while other might use internal modules to perform speech-to-text, resulting in different strategies to compute tokens. Read the model card for details about how each model operates.
217+
Audio is broken into tokens and submitted to the model for processing. Some models might operate directly over audio tokens while other might use internal modules to perform speech-to-text, resulting in different strategies to compute tokens. Read the model card for details about how each model operates.

0 commit comments

Comments
 (0)