You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/ai-services/openai/includes/use-your-data-rest.md
+9-5Lines changed: 9 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ author: aahill
5
5
ms.author: aahi
6
6
ms.service: azure-ai-openai
7
7
ms.topic: include
8
-
ms.date: 03/07/2024
8
+
ms.date: 01/10/2025
9
9
---
10
10
11
11
[!INCLUDE [Set up required variables](./use-your-data-common-variables.md)]
@@ -20,7 +20,7 @@ To trigger a response from the model, you should end with a user message indicat
20
20
> There are several parameters you can use to change the model's response, such as `temperature` or `top_p`. See the [reference documentation](../reference.md#completions-extensions) for more information.
21
21
22
22
```bash
23
-
curl -i -X POST $AZURE_OPENAI_ENDPOINT/openai/deployments/$AZURE_OPENAI_DEPLOYMENT_ID/chat/completions?api-version=2024-02-15-preview \
23
+
curl -i -X POST $AZURE_OPENAI_ENDPOINT/openai/deployments/$AZURE_OPENAI_DEPLOYMENT_ID/chat/completions?api-version=2024-10-21 \
24
24
-H "Content-Type: application/json" \
25
25
-H "api-key: $AZURE_OPENAI_API_KEY" \
26
26
-d \
@@ -31,8 +31,11 @@ curl -i -X POST $AZURE_OPENAI_ENDPOINT/openai/deployments/$AZURE_OPENAI_DEPLOYME
31
31
"type": "azure_search",
32
32
"parameters": {
33
33
"endpoint": "'$AZURE_AI_SEARCH_ENDPOINT'",
34
-
"key": "'$AZURE_AI_SEARCH_API_KEY'",
35
-
"index_name": "'$AZURE_AI_SEARCH_INDEX'"
34
+
"index_name": "'$AZURE_AI_SEARCH_INDEX'",
35
+
"authentication": {
36
+
"type": "api_key",
37
+
"key": "'$AZURE_AI_SEARCH_API_KEY'"
38
+
}
36
39
}
37
40
}
38
41
],
@@ -81,7 +84,8 @@ curl -i -X POST $AZURE_OPENAI_ENDPOINT/openai/deployments/$AZURE_OPENAI_DEPLOYME
0 commit comments