@@ -206,6 +206,7 @@ To change the default retry strategy for a single API call, simply provide a ret
206206import { openAsBlob } from " node:fs" ;
207207import { UnstructuredClient } from " unstructured-client" ;
208208import {
209+ Strategy ,
209210 VLMModel ,
210211 VLMModelProvider ,
211212} from " unstructured-client/sdk/models/shared" ;
@@ -221,6 +222,7 @@ async function run() {
221222 1 ,
222223 10 ,
223224 ],
225+ strategy: Strategy .Auto ,
224226 vlmModel: VLMModel .Gpt4o ,
225227 vlmModelProvider: VLMModelProvider .Openai ,
226228 },
@@ -237,7 +239,6 @@ async function run() {
237239 },
238240 });
239241
240- // Handle the result
241242 console .log (result );
242243}
243244
@@ -250,6 +251,7 @@ If you'd like to override the default retry strategy for all operations that sup
250251import { openAsBlob } from " node:fs" ;
251252import { UnstructuredClient } from " unstructured-client" ;
252253import {
254+ Strategy ,
253255 VLMModel ,
254256 VLMModelProvider ,
255257} from " unstructured-client/sdk/models/shared" ;
@@ -276,12 +278,12 @@ async function run() {
276278 1 ,
277279 10 ,
278280 ],
281+ strategy: Strategy .Auto ,
279282 vlmModel: VLMModel .Gpt4o ,
280283 vlmModelProvider: VLMModelProvider .Openai ,
281284 },
282285 });
283286
284- // Handle the result
285287 console .log (result );
286288}
287289
@@ -378,6 +380,7 @@ Certain SDK methods accept files as part of a multi-part request. It is possible
378380import { openAsBlob } from " node:fs" ;
379381import { UnstructuredClient } from " unstructured-client" ;
380382import {
383+ Strategy ,
381384 VLMModel ,
382385 VLMModelProvider ,
383386} from " unstructured-client/sdk/models/shared" ;
@@ -393,12 +396,12 @@ async function run() {
393396 1 ,
394397 10 ,
395398 ],
399+ strategy: Strategy .Auto ,
396400 vlmModel: VLMModel .Gpt4o ,
397401 vlmModelProvider: VLMModelProvider .Openai ,
398402 },
399403 });
400404
401- // Handle the result
402405 console .log (result );
403406}
404407
0 commit comments