Skip to content

Commit aae5867

Browse files
committed
edit
1 parent 7a8e3a5 commit aae5867

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

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

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,10 @@ ms.custom: passwordless-js, devex-track-javascript
2020

2121
Currently, access to this service is granted only by application. You can apply for access to Azure OpenAI by completing the form at <a href="https://aka.ms/oai/access" target="_blank">https://aka.ms/oai/access</a>. Open an issue on this repo to contact us if you have an issue.
2222
- <a href="https://nodejs.org/" target="_blank">Node.js LTS with TypeScript or ESM support.</a>
23-
- npm package `@azure/identity` for passwordless authentication or `@azure/core-auth` for service key authentication.
2423
- [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.
25-
- npm package `@azure/openai-assistants`.
2624
- Azure OpenAI Assistants are currently available in Sweden Central, East US 2, and Australia East. For more information about model availability in those regions, see the [models guide](../concepts/models.md).
2725
- 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.
2826
- An Azure OpenAI resource with the `gpt-4 (1106-preview)` model deployed was used testing this example.
29-
- Azure OpenAI RBAC role of `Cognitive Services User`.
3027

3128
## Passwordless authentication is recommended
3229

@@ -40,19 +37,21 @@ For passwordless authentication, you need to
4037

4138
1. Install the OpenAI Assistants client library for JavaScript with:
4239

43-
```console
44-
npm install @azure/openai-assistants
45-
```
40+
```console
41+
npm install @azure/openai-assistants
42+
```
4643

47-
2. Install one of the following authentication libraries based on your scenario with:
44+
2. For the **recommended** passwordless authentication:
4845

49-
```console
50-
# Recommended: With a passwordless connection
51-
npm install @azure/identity
46+
```console
47+
npm install @azure/identity
48+
```
5249

53-
# With the service key connection
54-
npm install @azure/core-auth
55-
```
50+
Or to use the service key connection:
51+
52+
```console
53+
npm install @azure/core-auth
54+
```
5655

5756
## Retrieve key and endpoint
5857

0 commit comments

Comments
 (0)