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
Copy file name to clipboardExpand all lines: index.js
+3-14Lines changed: 3 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -81,8 +81,7 @@ class Replicate {
81
81
* @param {object} options
82
82
* @param {object} options.input - Required. An object with the model inputs
83
83
* @param {object} [options.wait] - Options for waiting for the prediction to finish
84
-
* @param {number} [options.wait.interval] - Polling interval in milliseconds. Defaults to 250
85
-
* @param {number} [options.wait.max_attempts] - Maximum number of polling attempts. Defaults to no limit
84
+
* @param {number} [options.wait.interval] - Polling interval in milliseconds. Defaults to 500
86
85
* @param {string} [options.webhook] - An HTTPS URL for receiving a webhook when the prediction has new output
87
86
* @param {string[]} [options.webhook_events_filter] - You can change which events trigger webhook requests by specifying webhook events (`start`|`output`|`logs`|`completed`)
88
87
* @param {AbortSignal} [options.signal] - AbortSignal to cancel the prediction
@@ -247,8 +246,7 @@ class Replicate {
247
246
* @async
248
247
* @param {object} prediction - Prediction object
249
248
* @param {object} options - Options
250
-
* @param {number} [options.interval] - Polling interval in milliseconds. Defaults to 250
251
-
* @param {number} [options.max_attempts] - Maximum number of polling attempts. Defaults to no limit
249
+
* @param {number} [options.interval] - Polling interval in milliseconds. Defaults to 500
252
250
* @param {Function} [stop] - Async callback function that is called after each polling attempt. Receives the prediction object as an argument. Return false to cancel polling.
253
251
* @throws {Error} If the prediction doesn't complete within the maximum number of attempts
0 commit comments