Skip to content

improve replicate.stream() example#197

Merged
mattt merged 1 commit intomainfrom
improve-replicate.stream-example
Jan 30, 2024
Merged

improve replicate.stream() example#197
mattt merged 1 commit intomainfrom
improve-replicate.stream-example

Conversation

@zeke
Copy link
Copy Markdown
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