Skip to content

Commit 7a8e3a5

Browse files
committed
edit
1 parent ae0e217 commit 7a8e3a5

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

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

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ author: mrbullwinkle
77
ms.author: mbullwin
88
ms.service: azure-ai-openai
99
ms.topic: include
10-
ms.date: 04/08/2024
10+
ms.date: 04/10/2024
11+
ms.custom: passwordless-js, devex-track-javascript
1112
---
1213

1314
<a href="/javascript/api/@azure/openai-assistants" target="_blank">Reference documentation</a> | <a href="https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/openai/openai-assistants" target="_blank">Library source code</a> | <a href="https://www.npmjs.com/package/@azure/openai-assistants" target="_blank">Package (npm)</a> |
@@ -24,7 +25,16 @@ ms.date: 04/08/2024
2425
- npm package `@azure/openai-assistants`.
2526
- 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).
2627
- 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.
27-
- An Azure OpenAI resource with the `gpt-4 (1106-preview)` model deployed was used testing this example.
28+
- 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`.
30+
31+
## Passwordless authentication is recommended
32+
33+
For passwordless authentication, you need to
34+
35+
1. Use the `@azure/identity` package.
36+
1. Assign the `Cognitive Services User` role to your user account. This can be done in the Azure portal under **Access control (IAM)** > **Add role assignment**.
37+
1. Sign in with the Azure CLI such as `az login`.
2838

2939
## Set up
3040

@@ -113,7 +123,6 @@ To use the service key for authentication, you can create and run an assistant w
113123

114124
#### [JavaScript](#tab/javascript)
115125

116-
117126
Sign in to Azure with `az login` then create and run an assistant with the following **recommdended** passwordless Javascript module (index.mjs):
118127

119128
:::code language="javascript" source="~/azure-typescript-e2e-apps/quickstarts/azure-openai-assistants/js/src/index.mjs" :::

0 commit comments

Comments
 (0)