Create a new prediction.
(
key: IntegrationTaskKey,
params: Parameters<ReplicateClient["predictions"]["create"]>[0]
)
| 25 | |
| 26 | /** Create a new prediction. */ |
| 27 | create( |
| 28 | key: IntegrationTaskKey, |
| 29 | params: Parameters<ReplicateClient["predictions"]["create"]>[0] |
| 30 | ): ReplicateReturnType<Prediction> { |
| 31 | return this.runTask( |
| 32 | key, |
| 33 | (client) => { |
| 34 | return client.predictions.create(params); |
| 35 | }, |
| 36 | { |
| 37 | name: "Create Prediction", |
| 38 | params, |
| 39 | properties: createPredictionProperties(params), |
| 40 | } |
| 41 | ); |
| 42 | } |
| 43 | |
| 44 | /** Create a new prediction and await the result. */ |
| 45 | createAndAwait( |
nothing calls this directly
no test coverage detected