Skip to content

Commit 92fc329

Browse files
committed
edits
1 parent 3ea79ad commit 92fc329

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ An individual assistant can access up to 128 tools including `code interpreter`,
475475
1. Create the `index.js` file with the following code:
476476
477477
```javascript
478-
import { AzureOpenAI } from "openai";
478+
const { AzureOpenAI } = require("openai");
479479
480480
// Get environment variables
481481
const azureOpenAIKey = process.env.AZURE_OPENAI_KEY;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ Your app's _package.json_ file will be updated with the dependencies.
325325
node ChatWithOwnData.js
326326
```
327327

328-
#### [JavaScript (API Key)](#tab/javascript-key)
328+
#### [JavaScript (API key)](#tab/javascript-key)
329329

330330
1. Open a command prompt where you want the new project, and create a new file named `ChatWithOwnData.js`. Copy the following code into the `ChatWithOwnData.js` file.
331331

0 commit comments

Comments
 (0)