Skip to content

Commit 389004e

Browse files
committed
edit
1 parent b9dcf80 commit 389004e

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

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

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -214,11 +214,14 @@ An individual assistant can access up to 128 tools including `code interpreter`,
214214
215215
```json
216216
{
217-
"compilerOptions": {
218-
"target": "es2022",
219-
"module": "es2022",
220-
"moduleResolution": "node",
221-
}
217+
"compilerOptions": {
218+
"module": "NodeNext",
219+
"target": "ES2022", // Supports top-level await
220+
"moduleResolution": "NodeNext",
221+
"skipLibCheck": true, // Avoid type errors from node_modules
222+
"strict": true // Enable strict type-checking options
223+
},
224+
"include": ["*.ts"]
222225
}
223226
```
224227
@@ -341,15 +344,16 @@ An individual assistant can access up to 128 tools including `code interpreter`,
341344
"target": "ES2022", // Supports top-level await
342345
"moduleResolution": "NodeNext",
343346
"skipLibCheck": true, // Avoid type errors from node_modules
344-
"strict": true, // Enable strict type-checking options
345-
}
347+
"strict": true // Enable strict type-checking options
348+
},
349+
"include": ["*.ts"]
346350
}
347351
```
348352
349353
1. Transpile from TypeScript to JavaScript.
350354
351355
```shell
352-
tsc index.ts
356+
tsc
353357
```
354358
355359
1. Run the code with the following command:

0 commit comments

Comments
 (0)