Skip to content

Commit 9eb76ff

Browse files
authored
Update node-sdk.md
1 parent 3017961 commit 9eb76ff

File tree

1 file changed

+6
-0
lines changed
  • articles/cognitive-services/Computer-vision/includes/quickstarts-sdk

1 file changed

+6
-0
lines changed

articles/cognitive-services/Computer-vision/includes/quickstarts-sdk/node-sdk.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,12 @@ Define the `readTextFromURL` function. This calls the **read** method on the cl
133133

134134
[!code-javascript[](~/cognitive-services-quickstart-code/javascript/ComputerVision/ComputerVisionQuickstart.js?name=snippet_read_helper)]
135135

136+
As an optional step, see [How to specify the model version](../../Vision-API-How-to-Topics/call-read-api.md#determine-how-to-process-the-data-optional). The most recent model includes any enhancements to the previous GA and preview models. For example, to use the model version `2022-01-30-preview`, edit the `read` statement as shown:
137+
138+
```JS
139+
let result = await client.read(url,{modelVersion:"2022-01-30-preview"});
140+
```
141+
136142
Then, define the helper function `printRecText`, which prints the results of the Read operations to the console.
137143

138144
[!code-javascript[](~/cognitive-services-quickstart-code/javascript/ComputerVision/ComputerVisionQuickstart.js?name=snippet_read_print)]

0 commit comments

Comments
 (0)