Skip to content

Commit 7607534

Browse files
committed
edit
1 parent 65397f2 commit 7607534

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

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

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ ms.custom: passwordless-js, devex-track-javascript
1616
## Prerequisites
1717

1818
- An Azure subscription - <a href="https://azure.microsoft.com/free/cognitive-services" target="_blank">Create one for free</a>
19-
- <a href="https://nodejs.org/" target="_blank">Node.js LTS with TypeScript or ESM support.</a>
19+
- <a href="https://nodejs.org/" target="_blank">Node.js LTS or ESM support.</a>
20+
- [TypeScript](https://www.typescriptlang.org/download/) installed globally
2021
- [Azure CLI](/cli/azure/install-azure-cli) used for passwordless authentication in a local development environment, create the necessary context by signing in with the Azure CLI.
2122
- An Azure OpenAI resource with a [compatible model in a supported region](../concepts/models.md#assistants-preview).
2223
- We recommend reviewing the [Responsible AI transparency note](/legal/cognitive-services/openai/transparency-note?context=%2Fazure%2Fai-services%2Fopenai%2Fcontext%2Fcontext&tabs=text) and other [Responsible AI resources](/legal/cognitive-services/openai/overview?context=%2Fazure%2Fai-services%2Fopenai%2Fcontext%2Fcontext) to familiarize yourself with the capabilities and limitations of the Azure OpenAI Service.
@@ -64,27 +65,26 @@ For passwordless authentication, you need to
6465
npm install @azure/identity
6566
```
6667

67-
## Retrieve key and endpoint
68+
## Retrieve resource information
6869

69-
To successfully make a call against the Azure OpenAI service, you'll need the following:
70+
To successfully make a call against the Azure OpenAI service, set environment variables. If you intend to use keyless authentication, you shouldn't have the API Key environment variable set.
7071
71-
#### [TypeScript without key (Recommended)](#tab/typescript)
72+
#### [TypeScript keyless (Recommended)](#tab/typescript)
7273
7374
[!INCLUDE [assistants-keyless-environment-variables](assistants-env-var-without-key.md)]
7475
[!INCLUDE [environment-variables-deployment](assistants-env-var-additional.md)]
7576
76-
77-
#### [TypeScript with key](#tab/typescript-key)
77+
#### [TypeScript with API key](#tab/typescript-key)
7878
7979
[!INCLUDE [assistants-key-environment-variables](assistants-env-var.md)]
8080
[!INCLUDE [environment-variables-deployment](assistants-env-var-additional.md)]
8181
82-
#### [JavaScript without key](#tab/javascript)
82+
#### [JavaScript keyless](#tab/javascript)
8383
8484
[!INCLUDE [assistants-keyless-environment-variables](assistants-env-var-without-key.md)]
8585
[!INCLUDE [environment-variables-deployment](assistants-env-var-additional.md)]
8686
87-
#### [JavaScript with key](#tab/javascript-key)
87+
#### [JavaScript with API key](#tab/javascript-key)
8888
8989
[!INCLUDE [assistants-key-environment-variables](assistants-env-var.md)]
9090
[!INCLUDE [environment-variables-deployment](assistants-env-var-additional.md)]
@@ -104,7 +104,7 @@ In our code we are going to specify the following values:
104104
105105
An individual assistant can access up to 128 tools including `code interpreter`, as well as any custom tools you create via [functions](../how-to/assistant-functions.md).
106106
107-
#### [TypeScript without key (Recommended)](#tab/typescript)
107+
#### [TypeScript keyless (Recommended)](#tab/typescript)
108108
109109
1. Create the `index.ts` file with the following **recommended** passwordless TypeScript module (index.ts):
110110
@@ -235,7 +235,7 @@ An individual assistant can access up to 128 tools including `code interpreter`,
235235
node index.js
236236
```
237237
238-
#### [TypeScript with key](#tab/typescript-key)
238+
#### [TypeScript with API key](#tab/typescript-key)
239239
240240
1. To use the service key for authentication, you can create the `index.ts` file with the following TypeScript module (index.ts):
241241
@@ -353,7 +353,7 @@ An individual assistant can access up to 128 tools including `code interpreter`,
353353
node index.js
354354
```
355355
356-
#### [JavaScript without key](#tab/javascript)
356+
#### [JavaScript keyless](#tab/javascript)
357357
358358
1. Create the `index.js` file with the following **recommended** passwordless JavaScript module:
359359
@@ -459,7 +459,7 @@ An individual assistant can access up to 128 tools including `code interpreter`,
459459
node index.js
460460
```
461461
462-
#### [JavaScript with key](#tab/javascript-key)
462+
#### [JavaScript with API key](#tab/javascript-key)
463463
464464
1. To use the service key for authentication, you can create the `index.js` file with the following JavaScript module:
465465

0 commit comments

Comments
 (0)