Skip to content

Commit 896c13a

Browse files
committed
Deprecate stream parameter for predictions.create
1 parent 2fd2890 commit 896c13a

File tree

4 files changed

+255
-173
lines changed

4 files changed

+255
-173
lines changed

index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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[];

index.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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");

0 commit comments

Comments
 (0)