File tree Expand file tree Collapse file tree 4 files changed +255
-173
lines changed Expand file tree Collapse file tree 4 files changed +255
-173
lines changed Original file line number Diff line number Diff line change @@ -289,6 +289,7 @@ declare module "replicate" {
289
289
model ?: string ;
290
290
version ?: string ;
291
291
input : object ;
292
+ /** @deprecated */
292
293
stream ?: boolean ;
293
294
webhook ?: string ;
294
295
webhook_events_filter ?: WebhookEventType [ ] ;
Original file line number Diff line number Diff line change @@ -304,13 +304,11 @@ class Replicate {
304
304
prediction = await this . predictions . create ( {
305
305
...data ,
306
306
version : identifier . version ,
307
- stream : true ,
308
307
} ) ;
309
308
} else if ( identifier . owner && identifier . name ) {
310
309
prediction = await this . predictions . create ( {
311
310
...data ,
312
311
model : `${ identifier . owner } /${ identifier . name } ` ,
313
- stream : true ,
314
312
} ) ;
315
313
} else {
316
314
throw new Error ( "Invalid model version identifier" ) ;
You can’t perform that action at this time.
0 commit comments