@@ -5,7 +5,7 @@ author: laujan
5
5
manager : nitinme
6
6
ms.service : azure-ai-document-intelligence
7
7
ms.topic : include
8
- ms.date : 03/28 /2024
8
+ ms.date : 04/16 /2024
9
9
ms.author : lajanuar
10
10
ms.custom :
11
11
- devx-track-csharp
@@ -106,7 +106,8 @@ Open the `index.js` file in Visual Studio Code or your favorite IDE and select o
106
106
## Use the Read model
107
107
108
108
```javascript
109
- const { AzureKeyCredential, DocumentIntelligence } = require("@azure-rest/ai-document-intelligence");
109
+ const { DocumentIntelligenceClient } = require("@azure-rest/ai-document-intelligence");
110
+ const { AzureKeyCredential } = require("@azure/core-auth");
110
111
111
112
//use your `key` and `endpoint` environment variables
112
113
const key = process.env['DI_KEY'];
@@ -202,7 +203,8 @@ Visit the Azure samples repository on GitHub and view the [`read` model output](
202
203
## Use the Layout model
203
204
204
205
``` javascript
205
- const { AzureKeyCredential , DocumentIntelligence } = require (" @azure-rest/ai-document-intelligence" );
206
+ const { DocumentIntelligenceClient } = require (" @azure-rest/ai-document-intelligence" );
207
+ const { AzureKeyCredential } = require (" @azure/core-auth" );
206
208
207
209
// use your `key` and `endpoint` environment variables
208
210
const key = process .env [' DI_KEY' ];
@@ -272,7 +274,8 @@ Visit the Azure samples repository on GitHub and view the [layout model output](
272
274
## Use the General document model
273
275
274
276
``` javascript
275
- const { AzureKeyCredential , DocumentIntelligence } = require (" @azure-rest/ai-document-intelligence" );
277
+ const { DocumentIntelligenceClient } = require (" @azure-rest/ai-document-intelligence" );
278
+ const { AzureKeyCredential } = require (" @azure/core-auth" );
276
279
277
280
// use your `key` and `endpoint` environment variables
278
281
const key = process .env [' DI_KEY' ];
@@ -318,7 +321,8 @@ Visit the Azure samples repository on GitHub and view the [general document mode
318
321
## Use the W-2 tax model
319
322
320
323
``` javascript
321
- const { AzureKeyCredential , DocumentIntelligence } = require (" @azure-rest/ai-document-intelligence" );
324
+ const { DocumentIntelligenceClient } = require (" @azure-rest/ai-document-intelligence" );
325
+ const { AzureKeyCredential } = require (" @azure/core-auth" );
322
326
323
327
// use your `key` and `endpoint` environment variables
324
328
const key = process .env [' DI_KEY' ];
@@ -397,7 +401,8 @@ Visit the Azure samples repository on GitHub and view the [W-2 tax model output]
397
401
## Use the Invoice model
398
402
399
403
``` javascript
400
- const { AzureKeyCredential , DocumentIntelligence } = require (" @azure-rest/ai-document-intelligence" );
404
+ const { DocumentIntelligenceClient } = require (" @azure-rest/ai-document-intelligence" );
405
+ const { AzureKeyCredential } = require (" @azure/core-auth" );
401
406
402
407
// use your `key` and `endpoint` environment variables
403
408
const key = process .env [' DI_KEY' ];
@@ -459,7 +464,8 @@ Visit the Azure samples repository on GitHub and view the [invoice model output]
459
464
## Use the Receipt model
460
465
461
466
` ` ` javascript
462
- const { AzureKeyCredential , DocumentIntelligence } = require (" @azure-rest/ai-document-intelligence" );
467
+ const { DocumentIntelligenceClient } = require (" @azure-rest/ai-document-intelligence" );
468
+ const { AzureKeyCredential } = require (" @azure/core-auth" );
463
469
464
470
// use your `key` and `endpoint` environment variables
465
471
const key = process .env [' DI_KEY' ];
@@ -518,7 +524,8 @@ Visit the Azure samples repository on GitHub and view the [receipt model output]
518
524
## Use the ID document model
519
525
520
526
` ` ` javascript
521
- const { AzureKeyCredential , DocumentIntelligence } = require (" @azure-rest/ai-document-intelligence" );
527
+ const { DocumentIntelligenceClient } = require (" @azure-rest/ai-document-intelligence" );
528
+ const { AzureKeyCredential } = require (" @azure/core-auth" );
522
529
523
530
// use your `key` and `endpoint` environment variables
524
531
const key = process .env [' DI_KEY' ];
0 commit comments