File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
articles/cognitive-services/openai Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ Go to your resource in the Azure portal. The **Endpoint and Keys** can be found
63
63
openai.api_key = " REPLACE_WITH_YOUR_API_KEY_HERE"
64
64
openai.api_base = " REPLACE_WITH_YOUR_ENDPOINT_HERE" # your endpoint should look like the following https://YOUR_RESOURCE_NAME.openai.azure.com/
65
65
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
67
67
68
68
deployment_id= ' REPLACE_WITH_YOUR_DEPLOYMENT_NAME' # This will correspond to the custom name you chose for your deployment when you deployed a model.
69
69
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ Create a new Python file called quickstart.py. Then open it up in your preferred
50
50
base_url = " REPLACE_WITH_YOUR_ENDPOINT_HERE"
51
51
deploymentName = " REPLACE_WITH_YOUR_DEPLOYMENT_NAME_HERE"
52
52
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"
54
54
prompt = " Once upon a time"
55
55
payload = {
56
56
" prompt" :prompt
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ ms.subservice: openai
9
9
ms.topic : quickstart
10
10
author : ChrisHMSFT
11
11
ms.author : chrhoder
12
- ms.date : 06/30 /2022
12
+ ms.date : 12/14 /2022
13
13
zone_pivot_groups : openai-quickstart
14
14
recommendations : false
15
15
---
You can’t perform that action at this time.
0 commit comments