@@ -79,7 +79,7 @@ Create a Node.js Express application.
79
79
1. Install the `ai-document-intelligence` client library and `azure/identity` npm packages:
80
80
81
81
```console
82
- npm i @azure/[email protected] @azure/identity
82
+ npm i @azure-rest /[email protected] @azure/identity
83
83
```
84
84
85
85
Your app's *package.json* file is updated with the dependencies.
@@ -106,7 +106,7 @@ 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/ai-document-intelligence");
109
+ const { AzureKeyCredential, DocumentIntelligence } = require("@azure-rest /ai-document-intelligence");
110
110
111
111
//use your `key` and `endpoint` environment variables
112
112
const key = process.env['DI_KEY'];
@@ -202,7 +202,7 @@ Visit the Azure samples repository on GitHub and view the [`read` model output](
202
202
## Use the Layout model
203
203
204
204
``` javascript
205
- const { AzureKeyCredential , DocumentIntelligence } = require (" @azure/ai-document-intelligence" );
205
+ const { AzureKeyCredential , DocumentIntelligence } = require (" @azure-rest /ai-document-intelligence" );
206
206
207
207
// use your `key` and `endpoint` environment variables
208
208
const key = process .env [' DI_KEY' ];
@@ -272,7 +272,7 @@ Visit the Azure samples repository on GitHub and view the [layout model output](
272
272
## Use the General document model
273
273
274
274
``` javascript
275
- const { AzureKeyCredential , DocumentIntelligence } = require (" @azure/ai-document-intelligence" );
275
+ const { AzureKeyCredential , DocumentIntelligence } = require (" @azure-rest /ai-document-intelligence" );
276
276
277
277
// use your `key` and `endpoint` environment variables
278
278
const key = process .env [' DI_KEY' ];
@@ -318,7 +318,7 @@ Visit the Azure samples repository on GitHub and view the [general document mode
318
318
## Use the W-2 tax model
319
319
320
320
``` javascript
321
- const { AzureKeyCredential , DocumentIntelligence } = require (" @azure/ai-document-intelligence" );
321
+ const { AzureKeyCredential , DocumentIntelligence } = require (" @azure-rest /ai-document-intelligence" );
322
322
323
323
// use your `key` and `endpoint` environment variables
324
324
const key = process .env [' DI_KEY' ];
@@ -397,7 +397,7 @@ Visit the Azure samples repository on GitHub and view the [W-2 tax model output]
397
397
## Use the Invoice model
398
398
399
399
``` javascript
400
- const { AzureKeyCredential , DocumentIntelligence } = require (" @azure/ai-document-intelligence" );
400
+ const { AzureKeyCredential , DocumentIntelligence } = require (" @azure-rest /ai-document-intelligence" );
401
401
402
402
// use your `key` and `endpoint` environment variables
403
403
const key = process .env [' DI_KEY' ];
@@ -459,7 +459,7 @@ Visit the Azure samples repository on GitHub and view the [invoice model output]
459
459
## Use the Receipt model
460
460
461
461
` ` ` javascript
462
- const { AzureKeyCredential , DocumentIntelligence } = require (" @azure/ai-document-intelligence" );
462
+ const { AzureKeyCredential , DocumentIntelligence } = require (" @azure-rest /ai-document-intelligence" );
463
463
464
464
// use your `key` and `endpoint` environment variables
465
465
const key = process .env [' DI_KEY' ];
@@ -518,7 +518,7 @@ Visit the Azure samples repository on GitHub and view the [receipt model output]
518
518
## Use the ID document model
519
519
520
520
` ` ` javascript
521
- const { AzureKeyCredential , DocumentIntelligence } = require (" @azure/ai-document-intelligence" );
521
+ const { AzureKeyCredential , DocumentIntelligence } = require (" @azure-rest /ai-document-intelligence" );
522
522
523
523
// use your `key` and `endpoint` environment variables
524
524
const key = process .env [' DI_KEY' ];
0 commit comments