replicate-swift
replicate-swift copied to clipboard
Swift client for Replicate
**Environment:** - Swift 5.3 - macOS Big Sur - Replicate API with Stable Diffusion model **Problem:** I'm encountering an issue where the `cancel()` function in my `PredictionManager` class successfully changes...
The Disclaimer on security is misleading and will result in a high possibility of a compromised API Key: "Don't store secrets in code or any other resources bundled with your...
Hi there! I’ve recently started playing with Replicate in SwiftUI and this library has been super helpful. In my previous custom implementation of the Replicate HTTP API, I was doing...
/// Create a prediction using a deployment /// /// - Parameters: /// - owner: /// The name of the deployment owner. /// - name: /// The name of the deployment....
Sometimes it takes minutes to start a prediction, so it's nice to have this information so we can update the UI to give users some hint on the progress. Thanks!
For folks just starting out, it may not be obvious how to add this library to their Xcode project. We should update the README to be more explicit about what...
Hi, Thank you so much for this amazing lib! I was able to successfully reproduce your example at https://replicate.com/docs/get-started/swiftui. In the next steps section, you suggested we can concat a...
This PR refactors the client's internal `fetch` method to automatically retry requests as appropriate (429 status code, as well as 5xx errors for `GET` requests). If the server sends a...
Streaming is now enabled by default for all predictions. For more information, see https://replicate.com/changelog/2024-07-15-streams-always-available-stream-parameter-deprecated