Skip to content

Commit 8205a75

Browse files
committed
fix
1 parent 8847f6f commit 8205a75

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ To use chat completion models in your application, you need:
2828

2929
## Use chat completions
3030

31-
To use the text embeddings, use the route `/chat/completions` appended to the base URL along with your credential indicated in `api-key`. `Authorization` header is also supported with the format `Bearer <key>`.
31+
To use chat completions API, use the route `/chat/completions` appended to the base URL along with your credential indicated in `api-key`. `Authorization` header is also supported with the format `Bearer <key>`.
3232

3333
```http
3434
POST https://<resource>.services.ai.azure.com/models/chat/completions?api-version=2024-05-01-preview

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ string dataUrl = $"data:image/{imageFormat};base64,{imageBase64}";
8080

8181
Visualize the image:
8282

83-
:::image type="content" source="../../../../ai-studio/media/how-to/sdks/small-language-models-chart-example.jpg" alt-text="A chart displaying the relative capabilities between large language models and small language models." lightbox="../../../../ai-studio/media/how-to/sdks/small-language-models-chart-example.jpg":::
83+
:::image type="content" source="../../../../ai-foundry/media/how-to/sdks/small-language-models-chart-example.jpg" alt-text="A chart displaying the relative capabilities between large language models and small language models." lightbox="../../../../ai-foundry/media/how-to/sdks/small-language-models-chart-example.jpg":::
8484

8585
Now, create a chat completion request with the image:
8686

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ import IPython.display as Disp
9393
Disp.Image(requests.get(image_url).content)
9494
```
9595

96-
:::image type="content" source="../../../../ai-studio/media/how-to/sdks/small-language-models-chart-example.jpg" alt-text="A chart displaying the relative capabilities between large language models and small language models." lightbox="../../../../ai-studio/media/how-to/sdks/small-language-models-chart-example.jpg":::
96+
:::image type="content" source="../../../../ai-foundry/media/how-to/sdks/small-language-models-chart-example.jpg" alt-text="A chart displaying the relative capabilities between large language models and small language models." lightbox="../../../../ai-foundry/media/how-to/sdks/small-language-models-chart-example.jpg":::
9797

9898
Now, create a chat completion request with the image:
9999

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ To use chat completion models in your application, you need:
3131

3232
## Use chat completions
3333

34-
To use the text embeddings, use the route `/chat/completions` appended to the base URL along with your credential indicated in `api-key`. `Authorization` header is also supported with the format `Bearer <key>`.
34+
To use chat completions API, use the route `/chat/completions` appended to the base URL along with your credential indicated in `api-key`. `Authorization` header is also supported with the format `Bearer <key>`.
3535

3636
```http
3737
POST https://<resource>.services.ai.azure.com/models/chat/completions?api-version=2024-05-01-preview
@@ -57,11 +57,11 @@ 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-studio/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 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...`.
6161
6262
Visualize the image:
6363

64-
:::image type="content" source="../../../../ai-studio/media/how-to/sdks/small-language-models-chart-example.jpg" alt-text="A chart displaying the relative capabilities between large language models and small language models." lightbox="../../../../ai-studio/media/how-to/sdks/small-language-models-chart-example.jpg":::
64+
:::image type="content" source="../../../../ai-foundry/media/how-to/sdks/small-language-models-chart-example.jpg" alt-text="A chart displaying the relative capabilities between large language models and small language models." lightbox="../../../../ai-foundry/media/how-to/sdks/small-language-models-chart-example.jpg":::
6565

6666
Now, create a chat completion request with the image:
6767

@@ -125,7 +125,9 @@ Images are broken into tokens and submitted to the model for processing. When re
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. 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.
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.
129+
130+
The following example sends audio content encoded in `base64` data in the chat history:
129131

130132
```json
131133
{

0 commit comments

Comments
 (0)