Skip to content

Commit 6a9410e

Browse files
committed
Fix api-version query parameter in some REST calls.
1 parent bfff5c3 commit 6a9410e

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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=2025-04-01-preview" \
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 '{
@@ -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=2025-04-01-preview" \
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

articles/ai-foundry/openai/how-to/fine-tuning-deploy.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ The following example shows how to use the REST API to create a model deployment
197197

198198

199199
```bash
200-
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" \
200+
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" \
201201
-H "Authorization: Bearer <TOKEN>" \
202202
-H "Content-Type: application/json" \
203203
-d '{
@@ -231,7 +231,7 @@ The only limitations are that the new region must also support fine-tuning and w
231231
Below is an example of deploying a model that was fine-tuned in one subscription/region to another.
232232

233233
```bash
234-
curl -X PUT "https://management.azure.com/subscriptions/<SUBSCRIPTION>/resourceGroups/<RESOURCE_GROUP>/providers/Microsoft.CognitiveServices/accounts/<RESOURCE_NAME>/deployments/<MODEL_DEPLOYMENT_NAME>api-version=2024-10-21" \
234+
curl -X PUT "https://management.azure.com/subscriptions/<SUBSCRIPTION>/resourceGroups/<RESOURCE_GROUP>/providers/Microsoft.CognitiveServices/accounts/<RESOURCE_NAME>/deployments/<MODEL_DEPLOYMENT_NAME>?api-version=2024-10-21" \
235235
-H "Authorization: Bearer <TOKEN>" \
236236
-H "Content-Type: application/json" \
237237
-d '{
@@ -401,7 +401,7 @@ To delete a deployment, use the [Deployments - Delete REST API](/rest/api/aiserv
401401
Below is the REST API example to delete a deployment:
402402

403403
```bash
404-
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" \
404+
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" \
405405
-H "Authorization: Bearer <TOKEN>"
406406
```
407407

articles/ai-foundry/openai/includes/fine-tuning-rest.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ For large data files, we recommend that you import from an Azure Blob store. Lar
103103
### Upload training data
104104

105105
```bash
106-
curl -X POST $AZURE_OPENAI_ENDPOINT/openai/files?api-version=2023-12-01-preview \
106+
curl -X POST $AZURE_OPENAI_ENDPOINT/openai/files?api-version=2024-10-21 \
107107
-H "Content-Type: multipart/form-data" \
108108
-H "api-key: $AZURE_OPENAI_API_KEY" \
109109
-F "purpose=fine-tune" \
@@ -113,7 +113,7 @@ curl -X POST $AZURE_OPENAI_ENDPOINT/openai/files?api-version=2023-12-01-preview
113113
### Upload validation data
114114

115115
```bash
116-
curl -X POST $AZURE_OPENAI_ENDPOINT/openai/files?api-version=2023-12-01-preview \
116+
curl -X POST $AZURE_OPENAI_ENDPOINT/openai/files?api-version=2024-10-21 \
117117
-H "Content-Type: multipart/form-data" \
118118
-H "api-key: $AZURE_OPENAI_API_KEY" \
119119
-F "purpose=fine-tune" \
@@ -232,7 +232,7 @@ If you're ready to deploy for production or have particular data residency needs
232232
| fine_tuned_model | Retrieve this value from your fine-tuning job results in the previous step. It will look like `gpt-4.1-2025-04-14.ft-b044a9d3cf9c4228b5d393567f693b83`. You'll need to add that value to the deploy_data json. Alternatively you can also deploy a checkpoint, by passing the checkpoint ID which will appear in the format `ftchkpt-e559c011ecc04fc68eaa339d8227d02d` |
233233

234234
```bash
235-
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" \
235+
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" \
236236
-H "Authorization: Bearer <TOKEN>" \
237237
-H "Content-Type: application/json" \
238238
-d '{

0 commit comments

Comments
 (0)