Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add stream method on Prediction #215

Merged
merged 1 commit into from
Dec 8, 2023
Merged

Add stream method on Prediction #215

merged 1 commit into from
Dec 8, 2023

Conversation

mattt
Copy link
Member

@mattt mattt commented Dec 5, 2023

Follow-up to #204

This PR adds a stream method on Prediction. In most cases, you'll want to call replicate.stream to get the stream directly. But if you have an existing prediction object and want to stream its output, you can use this method instead. 1

Footnotes

  1. This rhymes with run being a shorthand for creating a prediction and calling wait.

Signed-off-by: Mattt Zmuda <mattt@replicate.com>
@mattt mattt merged commit 18779eb into main Dec 8, 2023
8 checks passed
@mattt mattt deleted the mattt/stream-prediction branch December 8, 2023 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant