File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
articles/ai-services/openai/includes Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ author: mrbullwinkle
7
7
ms.author : mbullwin
8
8
ms.service : azure-ai-openai
9
9
ms.topic : include
10
- ms.date : 05/21 /2024
10
+ ms.date : 05/30 /2024
11
11
ms.custom : passwordless-js, devex-track-javascript
12
12
---
13
13
@@ -65,26 +65,31 @@ Create and assign persistent environment variables for your key and endpoint.
65
65
66
66
[!INCLUDE [environment-variables](environment-variables.md)]
67
67
68
- Add an additional environment variable for the deployment name: `AZURE_OPENAI_DEPLOYMENT_NAME`.
68
+ Add additional environment variables for the deployment name and API version:
69
+ * `AZURE_OPENAI_DEPLOYMENT_NAME`: Your deployment name as shown in the Azure portal.
70
+ * `OPENAI_API_VERSION`: Learn more about [API Versions](/azure/ai-services/openai/concepts/model-versions).
69
71
70
72
Create and assign persistent environment variables for your key and endpoint.
71
73
72
74
# [Command Line](# tab/command-line)
73
75
74
76
```cmd
75
77
setx AZURE_OPENAI_DEPLOYMENT_NAME "REPLACE_WITH_YOUR_DEPLOYMENT_NAME"
78
+ setx OPENAI_API_VERSION "REPLACE_WITH_YOUR_API_VERSION"
76
79
```
77
80
78
81
# [ PowerShell] ( #tab/powershell )
79
82
80
83
``` powershell
81
84
[System.Environment]::SetEnvironmentVariable('AZURE_OPENAI_DEPLOYMENT_NAME', 'REPLACE_WITH_YOUR_DEPLOYMENT_NAME', 'User')
85
+ [System.Environment]::SetEnvironmentVariable('OPENAI_API_VERSION', 'REPLACE_WITH_YOUR_API_VERSION', 'User')
82
86
```
83
87
84
88
# [ Bash] ( #tab/bash )
85
89
86
90
``` bash
87
91
export AZURE_OPENAI_DEPLOYMENT_NAME=" REPLACE_WITH_YOUR_DEPLOYMENT_NAME"
92
+ export OPENAI_API_VERSION=" REPLACE_WITH_YOUR_API_VERSION"
88
93
```
89
94
90
95
---
You can’t perform that action at this time.
0 commit comments