Skip to content

Commit 3b8da1e

Browse files
Merge pull request #246851 from mrbullwinkle/mrb_07_31_2023_model_fix
[Azure AI] [Azure OpenAI] update curl example
2 parents c460267 + a4f239e commit 3b8da1e

File tree

1 file changed

+2
-2
lines changed
  • articles/ai-services/openai/concepts

1 file changed

+2
-2
lines changed

articles/ai-services/openai/concepts/models.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{
178178

179179
**Request body**
180180

181-
This is only a subset of the available request body parameters. For the full list of the parameters, you can refer to the [REST API spec](https://github.com/Azure/azure-rest-api-specs/blob/1e71ad94aeb8843559d59d863c895770560d7c93/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/cognitiveservices.json).
181+
This is only a subset of the available request body parameters. For the full list of the parameters, you can refer to the [REST API reference documentation](/rest/api/cognitiveservices/accountmanagement/deployments/create-or-update).
182182

183183
|Parameter|Type| Description |
184184
|--|--|--|
@@ -188,7 +188,7 @@ This is only a subset of the available request body parameters. For the full lis
188188
#### Example request
189189

190190
```Bash
191-
curl -X PUT https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resource-group-temp/providers/Microsoft.CognitiveServices/accounts/docs-openai-test-001/deployments/text-embedding-ada-002-test-1" \
191+
curl -X PUT https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resource-group-temp/providers/Microsoft.CognitiveServices/accounts/docs-openai-test-001/deployments/text-embedding-ada-002-test-1?api-version=2023-05-01 \
192192
-H "Content-Type: application/json" \
193193
-H 'Authorization: Bearer YOUR_AUTH_TOKEN' \
194194
-d '{"sku":{"name":"Standard","capacity":1},"properties": {"model": {"format": "OpenAI","name": "text-embedding-ada-002","version": "2"},"versionUpgradeOption":"OnceCurrentVersionExpired"}}'

0 commit comments

Comments
 (0)