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
The `replicate.request()` method is used by the other methods
1222
1226
to interact with the Replicate API.
1223
1227
You can call this method directly to make other requests to the API.
1224
1228
1229
+
The method accepts an `AbortSignal` which can be used to cancel the request in flight.
1230
+
1225
1231
### `FileOutput`
1226
1232
1227
1233
`FileOutput` is a `ReadableStream` instance that represents a model file output. It can be used to stream file data to disk or as a `Response` body to an HTTP request.
* @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
12
* @param {boolean|integer} [options.wait] - Whether to wait until the prediction is completed before returning. If an integer is provided, it will wait for that many seconds. Defaults to false
13
+
* @param {AbortSignal} [options.signal] - An optional AbortSignal
13
14
* @returns {Promise<object>} Resolves with the created prediction data
0 commit comments