Skip to content

Commit f7a1cf7

Browse files
committed
update date and make acrolinx fixes - chat completions
1 parent 4e152aa commit f7a1cf7

File tree

5 files changed

+21
-21
lines changed

5 files changed

+21
-21
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ author: mopeakande
77
reviewer: santiagxf
88
ms.service: azure-ai-model-inference
99
ms.topic: how-to
10-
ms.date: 1/21/2025
10+
ms.date: 03/20/2025
1111
ms.author: mopeakande
1212
ms.reviewer: fasantia
1313
ms.custom: references_regions, tool_generated
@@ -26,7 +26,7 @@ To use chat completion models in your application, you need:
2626

2727
[!INCLUDE [how-to-prerequisites-csharp](../how-to-prerequisites-csharp.md)]
2828

29-
* A chat completions model deployment. If you don't have one read [Add and configure models to Azure AI services](../../how-to/create-model-deployments.md) to add a chat completions model to your resource.
29+
* A chat completions model deployment. If you don't have one, read [Add and configure models to Azure AI services](../../how-to/create-model-deployments.md) to add a chat completions model to your resource.
3030

3131
* This example uses `mistral-large-2407`.
3232

@@ -42,7 +42,7 @@ ChatCompletionsClient client = new ChatCompletionsClient(
4242
);
4343
```
4444

45-
If you have configured the resource to with **Microsoft Entra ID** support, you can use the following code snippet to create a client.
45+
If you've configured the resource with **Microsoft Entra ID** support, you can use the following code snippet to create a client.
4646

4747

4848
```csharp
@@ -181,7 +181,7 @@ response = client.Complete(requestOptions);
181181
Console.WriteLine($"Response: {response.Value.Content}");
182182
```
183183

184-
Some models don't support JSON output formatting. You can always prompt the model to generate JSON outputs. However, such outputs are not guaranteed to be valid JSON.
184+
Some models don't support JSON output formatting. You can always prompt the model to generate JSON outputs. However, such outputs aren't guaranteed to be valid JSON.
185185

186186
If you want to pass a parameter that isn't in the list of supported parameters, you can pass it to the underlying model using *extra parameters*. See [Pass extra parameters to the model](#pass-extra-parameters-to-the-model).
187187

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ author: mopeakande
77
reviewer: santiagxf
88
ms.service: azure-ai-model-inference
99
ms.topic: how-to
10-
ms.date: 1/21/2025
10+
ms.date: 03/20/2025
1111
ms.author: mopeakande
1212
ms.reviewer: fasantia
1313
ms.custom: references_regions, tool_generated
@@ -26,7 +26,7 @@ To use chat completion models in your application, you need:
2626

2727
[!INCLUDE [how-to-prerequisites-java](../how-to-prerequisites-java.md)]
2828

29-
* A chat completions model deployment. If you don't have one read [Add and configure models to Azure AI services](../../how-to/create-model-deployments.md) to add a chat completions model to your resource.
29+
* A chat completions model deployment. If you don't have one, read [Add and configure models to Azure AI services](../../how-to/create-model-deployments.md) to add a chat completions model to your resource.
3030

3131
* This example uses `mistral-large-2407`.
3232

@@ -41,7 +41,7 @@ ChatCompletionsClient client = new ChatCompletionsClientBuilder()
4141
.buildClient();
4242
```
4343

44-
If you have configured the resource to with **Microsoft Entra ID** support, you can use the following code snippet to create a client.
44+
If you've configured the resource with **Microsoft Entra ID** support, you can use the following code snippet to create a client.
4545

4646
```java
4747
TokenCredential defaultCredential = new DefaultAzureCredentialBuilder().build();
@@ -120,7 +120,7 @@ client.completeStream(new ChatCompletionsOptions(chatMessages))
120120
#### Explore more parameters supported by the inference client
121121

122122
Explore other parameters that you can specify in the inference client. For a full list of all the supported parameters and their corresponding documentation, see [Azure AI Model Inference API reference](https://aka.ms/azureai/modelinference).
123-
Some models don't support JSON output formatting. You can always prompt the model to generate JSON outputs. However, such outputs are not guaranteed to be valid JSON.
123+
Some models don't support JSON output formatting. You can always prompt the model to generate JSON outputs. However, such outputs aren't guaranteed to be valid JSON.
124124

125125
If you want to pass a parameter that isn't in the list of supported parameters, you can pass it to the underlying model using *extra parameters*. See [Pass extra parameters to the model](#pass-extra-parameters-to-the-model).
126126

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ author: mopeakande
77
reviewer: santiagxf
88
ms.service: azure-ai-model-inference
99
ms.topic: how-to
10-
ms.date: 1/21/2025
10+
ms.date: 03/20/2025
1111
ms.author: mopeakande
1212
ms.reviewer: fasantia
1313
ms.custom: references_regions, tool_generated
@@ -26,7 +26,7 @@ To use chat completion models in your application, you need:
2626

2727
[!INCLUDE [how-to-prerequisites-javascript](../how-to-prerequisites-javascript.md)]
2828

29-
* A chat completions model deployment. If you don't have one read [Add and configure models to Azure AI services](../../how-to/create-model-deployments.md) to add a chat completions model to your resource.
29+
* A chat completions model deployment. If you don't have one, read [Add and configure models to Azure AI services](../../how-to/create-model-deployments.md) to add a chat completions model to your resource.
3030

3131
## Use chat completions
3232

@@ -44,7 +44,7 @@ const client = new ModelClient(
4444
);
4545
```
4646

47-
If you have configured the resource to with **Microsoft Entra ID** support, you can use the following code snippet to create a client.
47+
If you've configured the resource with **Microsoft Entra ID** support, you can use the following code snippet to create a client.
4848

4949

5050
```javascript
@@ -177,7 +177,7 @@ var response = await client.path("/chat/completions").post({
177177
});
178178
```
179179
180-
Some models don't support JSON output formatting. You can always prompt the model to generate JSON outputs. However, such outputs are not guaranteed to be valid JSON.
180+
Some models don't support JSON output formatting. You can always prompt the model to generate JSON outputs. However, such outputs aren't guaranteed to be valid JSON.
181181
182182
If you want to pass a parameter that isn't in the list of supported parameters, you can pass it to the underlying model using *extra parameters*. See [Pass extra parameters to the model](#pass-extra-parameters-to-the-model).
183183

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ author: mopeakande
77
reviewer: santiagxf
88
ms.service: azure-ai-model-inference
99
ms.topic: how-to
10-
ms.date: 1/21/2025
10+
ms.date: 03/20/2025
1111
ms.author: mopeakande
1212
ms.reviewer: fasantia
1313
ms.custom: references_regions, tool_generated
@@ -26,7 +26,7 @@ To use chat completion models in your application, you need:
2626

2727
[!INCLUDE [how-to-prerequisites-python](../how-to-prerequisites-python.md)]
2828

29-
* A chat completions model deployment. If you don't have one read [Add and configure models to Azure AI services](../../how-to/create-model-deployments.md) to add a chat completions model to your resource.
29+
* A chat completions model deployment. If you don't have one, read [Add and configure models to Azure AI services](../../how-to/create-model-deployments.md) to add a chat completions model to your resource.
3030

3131
* This example uses `mistral-large-2407`.
3232

@@ -46,7 +46,7 @@ client = ChatCompletionsClient(
4646
)
4747
```
4848

49-
If you have configured the resource to with **Microsoft Entra ID** support, you can use the following code snippet to create a client.
49+
If you've configured the resource with **Microsoft Entra ID** support, you can use the following code snippet to create a client.
5050

5151

5252
```python
@@ -166,7 +166,7 @@ response = client.complete(
166166
)
167167
```
168168

169-
Some models don't support JSON output formatting. You can always prompt the model to generate JSON outputs. However, such outputs are not guaranteed to be valid JSON.
169+
Some models don't support JSON output formatting. You can always prompt the model to generate JSON outputs. However, such outputs aren't guaranteed to be valid JSON.
170170

171171
If you want to pass a parameter that isn't in the list of supported parameters, you can pass it to the underlying model using *extra parameters*. See [Pass extra parameters to the model](#pass-extra-parameters-to-the-model).
172172

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ author: mopeakande
77
reviewer: santiagxf
88
ms.service: azure-ai-model-inference
99
ms.topic: how-to
10-
ms.date: 1/21/2025
10+
ms.date: 03/20/2025
1111
ms.author: mopeakande
1212
ms.reviewer: fasantia
1313
ms.custom: references_regions, tool_generated
@@ -24,7 +24,7 @@ To use chat completion models in your application, you need:
2424

2525
[!INCLUDE [how-to-prerequisites](../how-to-prerequisites.md)]
2626

27-
* A chat completions model deployment. If you don't have one read [Add and configure models to Azure AI services](../../how-to/create-model-deployments.md) to add a chat completions model to your resource.
27+
* A chat completions model deployment. If you don't have one, read [Add and configure models to Azure AI services](../../how-to/create-model-deployments.md) to add a chat completions model to your resource.
2828

2929
* This example uses `mistral-large-2407`.
3030

@@ -38,15 +38,15 @@ Content-Type: application/json
3838
api-key: <key>
3939
```
4040

41-
If you have configured the resource with **Microsoft Entra ID** support, pass you token in the `Authorization` header with the format `Bearer <token>`. Use scope `https://cognitiveservices.azure.com/.default`.
41+
If you've configured the resource with **Microsoft Entra ID** support, pass you token in the `Authorization` header with the format `Bearer <token>`. Use scope `https://cognitiveservices.azure.com/.default`.
4242

4343
```http
4444
POST https://<resource>.services.ai.azure.com/models/chat/completions?api-version=2024-05-01-preview
4545
Content-Type: application/json
4646
Authorization: Bearer <token>
4747
```
4848

49-
Using Microsoft Entra ID may require additional configuration in your resource to grant access. Learn how to [configure key-less authentication with Microsoft Entra ID](../../how-to/configure-entra-id.md).
49+
Using Microsoft Entra ID might require extra configuration in your resource to grant access. Learn how to [configure key-less authentication with Microsoft Entra ID](../../how-to/configure-entra-id.md).
5050

5151
### Create a chat completion request
5252

@@ -233,7 +233,7 @@ Explore other parameters that you can specify in the inference client. For a ful
233233
}
234234
```
235235

236-
Some models don't support JSON output formatting. You can always prompt the model to generate JSON outputs. However, such outputs are not guaranteed to be valid JSON.
236+
Some models don't support JSON output formatting. You can always prompt the model to generate JSON outputs. However, such outputs aren't guaranteed to be valid JSON.
237237

238238
If you want to pass a parameter that isn't in the list of supported parameters, you can pass it to the underlying model using *extra parameters*. See [Pass extra parameters to the model](#pass-extra-parameters-to-the-model).
239239

0 commit comments

Comments
 (0)