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
1215
1219
to interact with the Replicate API.
1216
1220
You can call this method directly to make other requests to the API.
1217
1221
1222
+
The method accepts an `AbortSignal` which can be used to cancel the request in flight.
1223
+
1218
1224
### `FileOutput`
1219
1225
1220
1226
`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