Skip to content

Commit 39bb403

Browse files
committed
updating version
1 parent 6145202 commit 39bb403

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

articles/ai-services/openai/references/azure-search.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Learn how to use Azure OpenAI on your Azure Search data Python & RE
55
manager: nitinme
66
ms.service: azure-ai-openai
77
ms.topic: conceptual
8-
ms.date: 02/14/2024
8+
ms.date: 03/12/2024
99
author: mrbullwinkle
1010
ms.author: mbullwin
1111
recommendations: false
@@ -14,7 +14,7 @@ ms.custom: devx-track-python
1414

1515
# Data source - Azure AI Search
1616

17-
The configurable options of Azure AI Search when using Azure OpenAI On Your Data. This data source is supported in API version `2024-02-15-preview`.
17+
The configurable options of Azure AI Search when using Azure OpenAI On Your Data. This data source is supported in API version `2024-02-01`.
1818

1919
|Name | Type | Required | Description |
2020
|--- | --- | --- | --- |
@@ -141,7 +141,7 @@ token_provider = get_bearer_token_provider(DefaultAzureCredential(), "https://co
141141
client = AzureOpenAI(
142142
azure_endpoint=endpoint,
143143
azure_ad_token_provider=token_provider,
144-
api_version="2024-02-15-preview",
144+
api_version="2024-02-01",
145145
)
146146

147147
completion = client.chat.completions.create(
@@ -176,7 +176,7 @@ print(completion.model_dump_json(indent=2))
176176

177177
```bash
178178
az rest --method POST \
179-
--uri $AzureOpenAIEndpoint/openai/deployments/$ChatCompletionsDeploymentName/chat/completions?api-version=2024-02-15-preview \
179+
--uri $AzureOpenAIEndpoint/openai/deployments/$ChatCompletionsDeploymentName/chat/completions?api-version=2024-02-01 \
180180
--resource https://cognitiveservices.azure.com/ \
181181
--body \
182182
'

articles/ai-services/openai/references/cosmos-db.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Learn how to use Azure OpenAI on your Azure Cosmos DB data Python &
55
manager: nitinme
66
ms.service: azure-ai-openai
77
ms.topic: conceptual
8-
ms.date: 02/14/2024
8+
ms.date: 03/12/2024
99
author: mrbullwinkle
1010
ms.author: mbullwin
1111
recommendations: false
@@ -14,7 +14,7 @@ ms.custom: devx-track-python
1414

1515
# Data source - Azure Cosmos DB for MongoDB vCore
1616

17-
The configurable options of Azure Cosmos DB for MongoDB vCore when using Azure OpenAI On Your Data. This data source is supported in API version `2024-02-15-preview`.
17+
The configurable options of Azure Cosmos DB for MongoDB vCore when using Azure OpenAI On Your Data. This data source is supported in API version `2024-02-01`.
1818

1919
|Name | Type | Required | Description |
2020
|--- | --- | --- | --- |
@@ -127,7 +127,7 @@ token_provider = get_bearer_token_provider(
127127
client = AzureOpenAI(
128128
azure_endpoint=endpoint,
129129
azure_ad_token_provider=token_provider,
130-
api_version="2024-02-15-preview",
130+
api_version="2024-02-01",
131131
)
132132

133133
completion = client.chat.completions.create(
@@ -178,7 +178,7 @@ print(completion.model_dump_json(indent=2))
178178
```bash
179179

180180
az rest --method POST \
181-
--uri $AzureOpenAIEndpoint/openai/deployments/$ChatCompletionsDeploymentName/chat/completions?api-version=2024-02-15-preview \
181+
--uri $AzureOpenAIEndpoint/openai/deployments/$ChatCompletionsDeploymentName/chat/completions?api-version=2024-02-01 \
182182
--resource https://cognitiveservices.azure.com/ \
183183
--body \
184184
'

articles/ai-services/openai/references/on-your-data.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Learn how to use Azure OpenAI On Your Data Python & REST API.
55
manager: nitinme
66
ms.service: azure-ai-openai
77
ms.topic: conceptual
8-
ms.date: 02/14/2024
8+
ms.date: 03/12/2024
99
author: mrbullwinkle
1010
ms.author: mbullwin
1111
recommendations: false
@@ -14,10 +14,10 @@ ms.custom: devx-track-python
1414

1515
# Azure OpenAI On Your Data API Reference
1616

17-
This article provides reference documentation for Python and REST for the new Azure OpenAI On Your Data API. The latest preview api-version is `2024-02-15-preview` [Swagger spec](https://github.com/Azure/azure-rest-api-specs/blob/main/specification/cognitiveservices/data-plane/AzureOpenAI/inference/preview/2024-02-15-preview/inference.json).
17+
This article provides reference documentation for Python and REST for the new Azure OpenAI On Your Data API. The latest API version is `2024-02-01` [Swagger spec](https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cognitiveservices/data-plane/AzureOpenAI/inference/stable/2024-02-01).
1818

1919
> [!NOTE]
20-
> Since `2024-02-15-preview` we introduced the following breaking changes comparing to earlier API versions:
20+
> Since API version `2024-02-15-preview` we introduced the following breaking changes comparing to earlier API versions:
2121
> * The API path is changed from `/extensions/chat/completions` to `/chat/completions`.
2222
> * The naming convention of property keys and enum values is changed from camel casing to snake casing. Example: `deploymentName` is changed to `deployment_name`.
2323
> * The data source type `AzureCognitiveSearch` is changed to `azure_search`.
@@ -118,7 +118,7 @@ token_provider = get_bearer_token_provider(DefaultAzureCredential(), "https://co
118118
client = AzureOpenAI(
119119
azure_endpoint=endpoint,
120120
azure_ad_token_provider=token_provider,
121-
api_version="2024-02-15-preview",
121+
api_version="2024-02-01",
122122
)
123123

124124
completion = client.chat.completions.create(
@@ -164,7 +164,7 @@ print(completion.model_dump_json(indent=2))
164164

165165
```bash
166166
az rest --method POST \
167-
--uri $AzureOpenAIEndpoint/openai/deployments/$ChatCompletionsDeploymentName/chat/completions?api-version=2024-02-15-preview \
167+
--uri $AzureOpenAIEndpoint/openai/deployments/$ChatCompletionsDeploymentName/chat/completions?api-version=2024-02-01 \
168168
--resource https://cognitiveservices.azure.com/ \
169169
--body \
170170
'

0 commit comments

Comments
 (0)