replicate / replicate-swift

Swift client for Replicate
https://replicate.com
Apache License 2.0
157 stars 33 forks source link

Add `stream` parameter to `createPrediction` #41

Closed mattt closed 1 year ago

mattt commented 1 year ago

This PR also deprecates the overload of createPrediction that takes a wait parameter. Instead, consumers should use create a prediction and use the Prediction.wait(with:) method.

For more information, see https://replicate.com/docs/streaming