Skip to content

Commit a6b8a1e

Browse files
Merge pull request #221366 from mrbullwinkle/mrb_12_13_2022_quickstart
[Cognitive Services] [Azure OpenAI] Quickstart API update
2 parents 67ddd30 + 4e4f2f3 commit a6b8a1e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

articles/cognitive-services/openai/includes/python.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ manager: nitinme
77
ms.service: cognitive-services
88
ms.subservice: openai
99
ms.topic: include
10-
ms.date: 11/02/2022
10+
ms.date: 12/14/2022
1111
keywords:
1212
---
1313

@@ -63,7 +63,7 @@ Go to your resource in the Azure portal. The **Endpoint and Keys** can be found
6363
openai.api_key = "REPLACE_WITH_YOUR_API_KEY_HERE"
6464
openai.api_base = "REPLACE_WITH_YOUR_ENDPOINT_HERE" # your endpoint should look like the following https://YOUR_RESOURCE_NAME.openai.azure.com/
6565
openai.api_type = 'azure'
66-
openai.api_version = '2022-06-01-preview' # this may change in the future
66+
openai.api_version = '2022-12-01' # this may change in the future
6767

6868
deployment_id='REPLACE_WITH_YOUR_DEPLOYMENT_NAME' #This will correspond to the custom name you chose for your deployment when you deployed a model.
6969

articles/cognitive-services/openai/includes/rest.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ manager: nitinme
77
ms.service: cognitive-services
88
ms.subservice: openai
99
ms.topic: include
10-
ms.date: 06/30/2022
10+
ms.date: 12/14/2022
1111
keywords:
1212
---
1313

@@ -50,7 +50,7 @@ Create a new Python file called quickstart.py. Then open it up in your preferred
5050
base_url = "REPLACE_WITH_YOUR_ENDPOINT_HERE"
5151
deploymentName ="REPLACE_WITH_YOUR_DEPLOYMENT_NAME_HERE"
5252

53-
url = base_url + "openai/deployments/" + deploymentName + "/completions?api-version=2022-06-01-preview"
53+
url = base_url + "/openai/deployments/" + deploymentName + "/completions?api-version=2022-12-01"
5454
prompt = "Once upon a time"
5555
payload = {
5656
"prompt":prompt

articles/cognitive-services/openai/quickstart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ms.subservice: openai
99
ms.topic: quickstart
1010
author: ChrisHMSFT
1111
ms.author: chrhoder
12-
ms.date: 06/30/2022
12+
ms.date: 12/14/2022
1313
zone_pivot_groups: openai-quickstart
1414
recommendations: false
1515
---

0 commit comments

Comments
 (0)