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
|`deployment_owner`| string |**Required**. The name of the user or organization that owns the deployment |
564
+
|`deployment_name`| string |**Required**. The name of the deployment |
565
+
|`options.input`| object |**Required**. An object with the model's inputs |
566
+
|`options.webhook`| string | An HTTPS URL for receiving a webhook when the prediction has new output |
567
+
|`options.webhook_events_filter`| string[]| You can change which events trigger webhook requests by specifying webhook events (`start`\|`output`\|`logs`\|`completed`) |
568
+
569
+
Use `replicate.wait` to wait for a prediction to finish,
570
+
or `replicate.predictions.cancel` to cancel a prediction before it finishes.
571
+
555
572
### `replicate.paginate`
556
573
557
574
Pass another method as an argument to iterate over results
* @param {string} deployment_owner - Required. The username of the user or organization who owns the deployment
5
+
* @param {string} deployment_name - Required. The name of the deployment
6
+
* @param {object} options
7
+
* @param {object} options.input - Required. An object with the model inputs
8
+
* @param {boolean|object} [options.wait] - Whether to wait for the prediction to finish. Defaults to false
9
+
* @param {number} [options.wait.interval] - Polling interval in milliseconds. Defaults to 250
10
+
* @param {number} [options.wait.maxAttempts] - Maximum number of polling attempts. Defaults to no limit
11
+
* @param {string} [options.webhook] - An HTTPS URL for receiving a webhook when the prediction has new output
12
+
* @param {string[]} [options.webhook_events_filter] - You can change which events trigger webhook requests by specifying webhook events (`start`|`output`|`logs`|`completed`)
13
+
* @returns {Promise<object>} Resolves with the created prediction data
0 commit comments