Skip to content

Commit 4efeb9a

Browse files
committed
fix
1 parent 50390b7 commit 4efeb9a

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,11 @@ Usage:
124124
Total tokens: 2506
125125
```
126126

127+
Images are broken into tokens and submitted to the model for processing. When referring to images, each of those tokens is typically referred as *patches*. Each model may break down a given image on a different number of patches. Read the model card to learn the details.
128+
127129
## Use chat completions with audio
128130

129-
Some models can reason across text and audio inputs. The following example shows how you can send audio context to a chat completions models that also supports audio. Use `InputAudio` to load the content of the audio file into the payload. The content is encoded in `base64` data and sent over the payload.
131+
Some models can reason across text and audio inputs. The following example shows how you can send audio context to chat completions models that also supports audio. Use `InputAudio` to load the content of the audio file into the payload. The content is encoded in `base64` data and sent over the payload.
130132

131133
```csharp
132134
var requestOptions = new ChatCompletionsOptions()

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
@@ -134,11 +134,11 @@ Usage:
134134
Total tokens: 2506
135135
```
136136

137-
Images are broken into tokens and submitted to the model for processing. When referring to images, each of those tokens is typically referred as *patches*. Each model may break down a given image on a different amount of patches. Read the model card to learn the details.
137+
Images are broken into tokens and submitted to the model for processing. When referring to images, each of those tokens is typically referred as *patches*. Each model may break down a given image on a different number of patches. Read the model card to learn the details.
138138

139139
## Use chat completions with audio
140140

141-
Some models can reason across text and audio inputs. The following example shows how you can send audio context to a chat completions models that also supports audio. Use `InputAudio` to load the content of the audio file into the payload. The content is encoded in `base64` data and sent over the payload.
141+
Some models can reason across text and audio inputs. The following example shows how you can send audio context to chat completions models that also supports audio. Use `InputAudio` to load the content of the audio file into the payload. The content is encoded in `base64` data and sent over the payload.
142142

143143
```python
144144
from azure.ai.inference.models import (

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Some models can reason across text and images and generate text completions base
5757
To see this capability, download an image and encode the information as `base64` string. The resulting data should be inside of a [data URL](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URLs):
5858

5959
> [!TIP]
60-
> You will need to construct the data URL using a scripting or programming language. This tutorial use [this sample image](../../../../ai-foundry/media/how-to/sdks/small-language-models-chart-example.jpg) in JPEG format. A data URL has a format as follows: `data:image/jpg;base64,0xABCDFGHIJKLMNOPQRSTUVWXYZ...`.
60+
> You will need to construct the data URL using a scripting or programming language. This tutorial uses [this sample image](../../../../ai-foundry/media/how-to/sdks/small-language-models-chart-example.jpg) in JPEG format. A data URL has a format as follows: `data:image/jpg;base64,0xABCDFGHIJKLMNOPQRSTUVWXYZ...`.
6161
6262
Visualize the image:
6363

@@ -121,11 +121,11 @@ The response is as follows, where you can see the model's usage statistics:
121121
}
122122
```
123123

124-
Images are broken into tokens and submitted to the model for processing. When referring to images, each of those tokens is typically referred as *patches*. Each model may break down a given image on a different amount of patches. Read the model card to learn the details.
124+
Images are broken into tokens and submitted to the model for processing. When referring to images, each of those tokens is typically referred as *patches*. Each model may break down a given image on a different number of patches. Read the model card to learn the details.
125125

126126
## Use chat completions with audio
127127

128-
Some models can reason across text and audio inputs. The following example shows how you can send audio context to a chat completions models that also supports audio.
128+
Some models can reason across text and audio inputs. The following example shows how you can send audio context to chat completions models that also supports audio.
129129

130130
The following example sends audio content encoded in `base64` data in the chat history:
131131

0 commit comments

Comments
 (0)