You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`options.version`| string |**Required**. The model version |
253
253
|`options.input`| object |**Required**. An object with the model's inputs |
254
+
|`options.stream`| boolean | Requests a URL for streaming output output |
254
255
|`options.webhook`| string | An HTTPS URL for receiving a webhook when the prediction has new output |
255
256
|`options.webhook_events_filter`| string[]| You can change which events trigger webhook requests by specifying webhook events (`start`\|`output`\|`logs`\|`completed`) |
Copy file name to clipboardExpand all lines: lib/predictions.js
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -9,10 +9,11 @@
9
9
* @param {number} [options.wait.maxAttempts] - Maximum number of polling attempts. Defaults to no limit
10
10
* @param {string} [options.webhook] - An HTTPS URL for receiving a webhook when the prediction has new output
11
11
* @param {string[]} [options.webhook_events_filter] - You can change which events trigger webhook requests by specifying webhook events (`start`|`output`|`logs`|`completed`)
12
-
* @returns {Promise<object>} Resolves with the created prediction data
12
+
* @param {boolean} [options.stream] - Whether to stream the prediction output. Defaults to false
13
+
* @returns {Promise<object>} Resolves with the created prediction
0 commit comments