Skip to content

Commit 76ae935

Browse files
committed
edits
1 parent 5415de3 commit 76ae935

File tree

4 files changed

+12
-7
lines changed

4 files changed

+12
-7
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,8 @@ An individual assistant can access up to 128 tools including `code interpreter`,
299299
300300
```
301301
302+
---
303+
302304
## Output
303305
304306
```console

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,6 @@ For passwordless authentication, you need to
6767

6868
## Retrieve resource information
6969

70-
> [!CAUTION]
71-
> To use the recommended keyless authentication with the SDK, make sure that the `AZURE_OPENAI_API_KEY` environment variable isn't set.
7270

7371
#### [Microsoft Entra ID](#tab/typescript-keyless)
7472

@@ -82,7 +80,7 @@ For passwordless authentication, you need to
8280
---
8381

8482
> [!CAUTION]
85-
> Don't set `AZURE_OPENAI_API_KEY` when using keyless authentication.
83+
> To use the recommended keyless authentication with the SDK, make sure that the `AZURE_OPENAI_API_KEY` environment variable isn't set.
8684
8785
8886
## Create an assistant
@@ -101,7 +99,7 @@ In our code we're going to specify the following values:
10199
An individual assistant can access up to 128 tools including `code interpreter`, and any custom tools you create via [functions](../how-to/assistant-functions.md).
102100

103101

104-
## Create a new JavaScript application
102+
## Create a new TypeScript application
105103

106104
#### [Microsoft Entra ID](#tab/typescript-keyless)
107105

articles/ai-services/openai/includes/use-your-data-javascript.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ ms.date: 10/22/2024
1111
[!INCLUDE [Set up required variables](./use-your-data-common-variables.md)]
1212

1313

14-
## Create a Node application
14+
15+
## Initialize a Node.js application
1516

1617
In a console window (such as cmd, PowerShell, or Bash), create a new directory for your app, and navigate to it. Then run the `npm init` command to create a node application with a _package.json_ file.
1718

@@ -29,7 +30,7 @@ npm install @azure/openai @azure/identity
2930

3031
Your app's _package.json_ file will be updated with the dependencies.
3132

32-
## Create a new JavaScript application
33+
## Add the JavaScript code
3334

3435
#### [Microsoft Entra ID](#tab/javascript-keyless)
3536

@@ -212,6 +213,7 @@ Your app's _package.json_ file will be updated with the dependencies.
212213
213214
---
214215
216+
215217
> [!IMPORTANT]
216218
> For production, use a secure way of storing and accessing your credentials like [Azure Key Vault](/azure/key-vault/general/overview). For more information about credential security, see the Azure AI services [security](../../security-features.md) article.
217219

articles/ai-services/openai/includes/use-your-data-typescript.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ms.date: 10/22/2024
1111
[!INCLUDE [Set up required variables](./use-your-data-common-variables.md)]
1212

1313

14-
## Create a Node application
14+
## Initialize a Node.js application
1515

1616
In a console window (such as cmd, PowerShell, or Bash), create a new directory for your app, and navigate to it. Then run the `npm init` command to create a node application with a _package.json_ file.
1717

@@ -32,6 +32,8 @@ The `@azure/openai/types` dependency is included to extend the Azure OpenAI mode
3232

3333
Your app's _package.json_ file will be updated with the dependencies.
3434

35+
## Add the TypeScript code
36+
3537
#### [Microsoft Entra ID](#tab/typescript-keyless)
3638

3739
1. Open a command prompt where you want the new project, and create a new file named `ChatWithOwnData.ts`. Copy the following code into the `ChatWithOwnData.ts` file.
@@ -228,6 +230,7 @@ Your app's _package.json_ file will be updated with the dependencies.
228230

229231
---
230232

233+
231234
> [!IMPORTANT]
232235
> For production, use a secure way of storing and accessing your credentials like [Azure Key Vault](/azure/key-vault/general/overview). For more information about credential security, see the Azure AI services [security](../../security-features.md) article.
233236

0 commit comments

Comments
 (0)