Skip to content

Commit 8f9e9dd

Browse files
Merge pull request #6145 from voutilad/devtier-api-version
Bump the API version used to ensure Developer Tier is a valid sku.
2 parents ce1373b + d7cad73 commit 8f9e9dd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

articles/ai-foundry/openai/how-to/fine-tune-test.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ resource_group = "<YOUR_RESOURCE_GROUP_NAME>"
4848
resource_name = "<YOUR_AZURE_OPENAI_RESOURCE_NAME>"
4949
model_deployment_name = "gpt41-mini-candidate-01" # custom deployment name that you will use to reference the model when making inference calls.
5050

51-
deploy_params = {'api-version': "2024-10-21"}
51+
deploy_params = {'api-version': "2025-04-01-preview"}
5252
deploy_headers = {'Authorization': 'Bearer {}'.format(token), 'Content-Type': 'application/json'}
5353

5454
deploy_data = {
@@ -90,7 +90,7 @@ The following example shows how to use the REST API to create a model deployment
9090

9191

9292
```bash
93-
curl -X POST "https://management.azure.com/subscriptions/<SUBSCRIPTION>/resourceGroups/<RESOURCE_GROUP>/providers/Microsoft.CognitiveServices/accounts/<RESOURCE_NAME>/deployments/<MODEL_DEPLOYMENT_NAME>api-version=2024-10-21" \
93+
curl -X POST "https://management.azure.com/subscriptions/<SUBSCRIPTION>/resourceGroups/<RESOURCE_GROUP>/providers/Microsoft.CognitiveServices/accounts/<RESOURCE_NAME>/deployments/<MODEL_DEPLOYMENT_NAME>api-version=2025-04-01-preview" \
9494
-H "Authorization: Bearer <TOKEN>" \
9595
-H "Content-Type: application/json" \
9696
-d '{
@@ -180,7 +180,7 @@ print(response.choices[0].message.content)
180180
## [REST](#tab/rest)
181181

182182
```bash
183-
curl $AZURE_OPENAI_ENDPOINT/openai/deployments/<deployment_name>/chat/completions?api-version=2024-10-21 \
183+
curl $AZURE_OPENAI_ENDPOINT/openai/deployments/<deployment_name>/chat/completions?api-version=2025-04-01-preview \
184184
-H "Content-Type: application/json" \
185185
-H "api-key: $AZURE_OPENAI_API_KEY" \
186186
-d '{"messages":[{"role": "system", "content": "You are a helpful assistant."},{"role": "user", "content": "Does Azure OpenAI support customer managed keys?"},{"role": "assistant", "content": "Yes, customer managed keys are supported by Azure OpenAI."},{"role": "user", "content": "Do other Azure AI services support this too?"}]}'
@@ -203,7 +203,7 @@ To use the [Deployments - Delete REST API](/rest/api/aiservices/accountmanagemen
203203
Below is the REST API example to delete a deployment:
204204

205205
```bash
206-
curl -X DELETE "https://management.azure.com/subscriptions/<SUBSCRIPTION>/resourceGroups/<RESOURCE_GROUP>/providers/Microsoft.CognitiveServices/accounts/<RESOURCE_NAME>/deployments/<MODEL_DEPLOYMENT_NAME>api-version=2024-10-21" \
206+
curl -X DELETE "https://management.azure.com/subscriptions/<SUBSCRIPTION>/resourceGroups/<RESOURCE_GROUP>/providers/Microsoft.CognitiveServices/accounts/<RESOURCE_NAME>/deployments/<MODEL_DEPLOYMENT_NAME>api-version=2025-04-01-preview" \
207207
-H "Authorization: Bearer <TOKEN>"
208208
```
209209

0 commit comments

Comments
 (0)