Skip to content

improve replicate.stream() example #197

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

Merged
merged 1 commit into from
Jan 30, 2024
Merged

Conversation

zeke
Copy link
Member

@zeke zeke commented Jan 22, 2024

This PR updates the replicate.stream() example usage in the README with a new snippet that:

  • works
  • logs events as they stream in
  • accumulates the final output and logs it when finished
  • shows how to set a webhook

Resolves #196

@zeke zeke requested a review from a team January 22, 2024 23:12
@zeke zeke force-pushed the improve-replicate.stream-example branch from 10ad9c2 to fa60bd1 Compare January 22, 2024 23:13
@mattt mattt merged commit cafb2a5 into main Jan 30, 2024
@mattt mattt deleted the improve-replicate.stream-example branch January 30, 2024 11:19
@mattt mattt mentioned this pull request Feb 16, 2024
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.

fix replicate.stream example
3 participants