Skip to content

Commit a765133

Browse files
committed
Azure OpenAI - Assistants Quickstart - JS
1 parent 53b5ac9 commit a765133

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

articles/ai-services/openai/includes/assistants-javascript.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ author: mrbullwinkle
77
ms.author: mbullwin
88
ms.service: azure-ai-openai
99
ms.topic: include
10-
ms.date: 05/21/2024
10+
ms.date: 05/30/2024
1111
ms.custom: passwordless-js, devex-track-javascript
1212
---
1313

@@ -65,26 +65,31 @@ Create and assign persistent environment variables for your key and endpoint.
6565

6666
[!INCLUDE [environment-variables](environment-variables.md)]
6767

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).
6971

7072
Create and assign persistent environment variables for your key and endpoint.
7173

7274
# [Command Line](#tab/command-line)
7375

7476
```cmd
7577
setx AZURE_OPENAI_DEPLOYMENT_NAME "REPLACE_WITH_YOUR_DEPLOYMENT_NAME"
78+
setx OPENAI_API_VERSION "REPLACE_WITH_YOUR_API_VERSION"
7679
```
7780

7881
# [PowerShell](#tab/powershell)
7982

8083
```powershell
8184
[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')
8286
```
8387

8488
# [Bash](#tab/bash)
8589

8690
```bash
8791
export AZURE_OPENAI_DEPLOYMENT_NAME="REPLACE_WITH_YOUR_DEPLOYMENT_NAME"
92+
export OPENAI_API_VERSION="REPLACE_WITH_YOUR_API_VERSION"
8893
```
8994

9095
---

0 commit comments

Comments
 (0)