Skip to content

Commit 1a1f66b

Browse files
committed
fix
1 parent 36d7933 commit 1a1f66b

File tree

18 files changed

+141
-47
lines changed

18 files changed

+141
-47
lines changed

articles/ai-foundry/model-inference/includes/code-create-chat-client-entra.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ Use the reference section to explore the API design and which parameters are ava
126126
__Request__
127127

128128
```HTTP/1.1
129-
POST https://<resource>.services.ai.azure.com/models/chat/completions?api-version=2024-05-01-preview
129+
POST https://<resource>.services.ai.azure.com/models/chat/completions?api-version=2025-04-01
130130
Authorization: Bearer <bearer-token>
131131
Content-Type: application/json
132132
```

articles/ai-foundry/model-inference/includes/code-create-chat-client.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ Use the reference section to explore the API design and which parameters are ava
111111
__Request__
112112

113113
```HTTP/1.1
114-
POST https://<resource>.services.ai.azure.com/models/chat/completions?api-version=2024-05-01-preview
114+
POST https://<resource>.services.ai.azure.com/models/chat/completions?api-version=2025-04-01
115115
api-key: <api-key>
116116
Content-Type: application/json
117117
```

articles/ai-foundry/model-inference/includes/code-create-chat-completion.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ response = client.complete(
1717
SystemMessage(content="You are a helpful assistant."),
1818
UserMessage(content="Explain Riemann's conjecture in 1 paragraph"),
1919
],
20-
model="mistral-large"
20+
model="mistral-large-2405"
2121
)
2222

2323
print(response.choices[0].message.content)
@@ -34,7 +34,7 @@ var messages = [
3434
var response = await client.path("/chat/completions").post({
3535
body: {
3636
messages: messages,
37-
model: "mistral-large"
37+
model: "mistral-large-2405"
3838
}
3939
});
4040

@@ -50,7 +50,7 @@ requestOptions = new ChatCompletionsOptions()
5050
new ChatRequestSystemMessage("You are a helpful assistant."),
5151
new ChatRequestUserMessage("Explain Riemann's conjecture in 1 paragraph")
5252
},
53-
Model = "mistral-large"
53+
Model = "mistral-large-2405"
5454
};
5555

5656
response = client.Complete(requestOptions);
@@ -77,7 +77,7 @@ for (ChatChoice choice : chatCompletions.getChoices()) {
7777
__Request__
7878

7979
```HTTP/1.1
80-
POST https://<resource>.services.ai.azure.com/models/chat/completions?api-version=2024-05-01-preview
80+
POST https://<resource>.services.ai.azure.com/models/chat/completions?api-version=2025-04-01
8181
api-key: <api-key>
8282
Content-Type: application/json
8383
```
@@ -94,7 +94,7 @@ Content-Type: application/json
9494
"content": "Explain Riemann's conjecture in 1 paragraph"
9595
}
9696
],
97-
"model": "mistral-large"
97+
"model": "mistral-large-2405"
9898
}
9999
```
100100

articles/ai-foundry/model-inference/includes/code-create-chat-reasoning.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ for (ChatChoice choice : chatCompletions.getChoices()) {
7373
__Request__
7474

7575
```HTTP/1.1
76-
POST https://<resource>.services.ai.azure.com/models/chat/completions?api-version=2024-05-01-preview
76+
POST https://<resource>.services.ai.azure.com/models/chat/completions?api-version=2025-04-01
7777
api-key: <api-key>
7878
Content-Type: application/json
7979
```

articles/ai-foundry/model-inference/includes/code-create-embeddings-client.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ Use the reference section to explore the API design and which parameters are ava
128128
__Request__
129129

130130
```HTTP/1.1
131-
POST https://<resource>.services.ai.azure.com/models/embeddings?api-version=2024-05-01-preview
131+
POST https://<resource>.services.ai.azure.com/models/embeddings?api-version=2025-04-01
132132
api-key: <api-key>
133133
Content-Type: application/json
134134
```

articles/ai-foundry/model-inference/includes/code-create-embeddings.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Console.WriteLine($"Response: {response.Data.Embeddings}");
5353
__Request__
5454

5555
```HTTP/1.1
56-
POST https://<resource>.services.ai.azure.com/models/embeddings?api-version=2024-05-01-preview
56+
POST https://<resource>.services.ai.azure.com/models/embeddings?api-version=2025-04-01
5757
api-key: <api-key>
5858
Content-Type: application/json
5959
```

articles/ai-foundry/model-inference/includes/code-manage-content-filtering.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ try {
122122
__Request__
123123

124124
```HTTP/1.1
125-
POST https://<resource>.services.ai.azure.com/models/chat/completions?api-version=2024-05-01-preview
125+
POST https://<resource>.services.ai.azure.com/models/chat/completions?api-version=2025-04-01
126126
api-key: <api-key>
127127
Content-Type: application/json
128128
```

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ If you've configured the resource with **Microsoft Entra ID** support, you can u
4848
```csharp
4949
TokenCredential credential = new DefaultAzureCredential(includeInteractiveCredentials: true);
5050
AzureAIInferenceClientOptions clientOptions = new AzureAIInferenceClientOptions();
51-
BearerTokenAuthenticationPolicy tokenPolicy = new BearerTokenAuthenticationPolicy(credential, new string[] { "https://cognitiveservices.azure.com/.default" });
51+
BearerTokenAuthenticationPolicy tokenPolicy = new BearerTokenAuthenticationPolicy(credential);
5252

5353
clientOptions.AddPolicy(tokenPolicy, HttpPipelinePosition.PerRetry);
5454

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ To use chat completion models in your application, you need:
3333
To use chat completions API, use the route `/chat/completions` appended to the base URL along with your credential indicated in `api-key`.
3434

3535
```http
36-
POST https://<resource>.services.ai.azure.com/models/chat/completions?api-version=2024-05-01-preview
36+
POST https://<resource>.services.ai.azure.com/models/chat/completions?api-version=2025-04-01
3737
Content-Type: application/json
3838
api-key: <key>
3939
```
4040

4141
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
44-
POST https://<resource>.services.ai.azure.com/models/chat/completions?api-version=2024-05-01-preview
44+
POST https://<resource>.services.ai.azure.com/models/chat/completions?api-version=2025-04-01
4545
Content-Type: application/json
4646
Authorization: Bearer <token>
4747
```
@@ -291,7 +291,7 @@ Some models can create JSON outputs. Set `response_format` to `json_object` to e
291291
The Azure AI Model Inference API allows you to pass extra parameters to the model. The following code example shows how to pass the extra parameter `logprobs` to the model.
292292

293293
```http
294-
POST https://<resource>.services.ai.azure.com/models/chat/completions?api-version=2024-05-01-preview
294+
POST https://<resource>.services.ai.azure.com/models/chat/completions?api-version=2025-04-01
295295
Authorization: Bearer <TOKEN>
296296
Content-Type: application/json
297297
extra-parameters: pass-through

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
@@ -48,7 +48,7 @@ If you've configured the resource with **Microsoft Entra ID** support, you can u
4848
```csharp
4949
TokenCredential credential = new DefaultAzureCredential(includeInteractiveCredentials: true);
5050
AzureAIInferenceClientOptions clientOptions = new AzureAIInferenceClientOptions();
51-
BearerTokenAuthenticationPolicy tokenPolicy = new BearerTokenAuthenticationPolicy(credential, new string[] { "https://cognitiveservices.azure.com/.default" });
51+
BearerTokenAuthenticationPolicy tokenPolicy = new BearerTokenAuthenticationPolicy(credential);
5252

5353
clientOptions.AddPolicy(tokenPolicy, HttpPipelinePosition.PerRetry);
5454

0 commit comments

Comments
 (0)