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" {
289289 model ?: string ;
290290 version ?: string ;
291291 input : object ;
292+ /** @deprecated */
292293 stream ?: boolean ;
293294 webhook ?: string ;
294295 webhook_events_filter ?: WebhookEventType [ ] ;
Original file line number Diff line number Diff line change @@ -304,13 +304,11 @@ class Replicate {
304304 prediction = await this . predictions . create ( {
305305 ...data ,
306306 version : identifier . version ,
307- stream : true ,
308307 } ) ;
309308 } else if ( identifier . owner && identifier . name ) {
310309 prediction = await this . predictions . create ( {
311310 ...data ,
312311 model : `${ identifier . owner } /${ identifier . name } ` ,
313- stream : true ,
314312 } ) ;
315313 } else {
316314 throw new Error ( "Invalid model version identifier" ) ;
You can’t perform that action at this time.
0 commit comments