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
* @param {string} ref - Required. The model version identifier in the format "owner/name" or "owner/name:version"
134
134
* @param {object} options
135
135
* @param {object} options.input - Required. An object with the model inputs
136
-
* @param {object} [options.wait] - Options for waiting for the prediction to finish. If `wait` is explicitly true, the function will block and wait for the prediction to finish.
137
-
* @param {number} [options.wait.interval] - Polling interval in milliseconds. Defaults to 500
136
+
* @param {{mode: "block", timeout?: number, interval?: number} | {mode: "poll", interval?: number }} [options.wait] - Options for waiting for the prediction to finish. If `wait` is explicitly true, the function will block and wait for the prediction to finish.
138
137
* @param {string} [options.webhook] - An HTTPS URL for receiving a webhook when the prediction has new output
139
138
* @param {string[]} [options.webhook_events_filter] - You can change which events trigger webhook requests by specifying webhook events (`start`|`output`|`logs`|`completed`)
140
139
* @param {AbortSignal} [options.signal] - AbortSignal to cancel the prediction
@@ -144,23 +143,22 @@ class Replicate {
144
143
* @returns {Promise<object>} - Resolves with the output of running the model
0 commit comments