Skip to content

Commit

Permalink
docs(messages): improvements to helpers reference + typos (#595)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot committed Dec 22, 2023
1 parent af11177 commit 027da52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helpers.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ iterator, and exposes helper methods to accumulate chunks into a convenient shap
about the conversation.
Alternatively, you can use `openai.chat.completions.create({ stream: true, … })` which returns an async
iteratable of the chunks in the stream and uses less memory (most notably, it does not accumulate a final chat
iterable of the chunks in the stream and uses less memory (most notably, it does not accumulate a final chat
completion object for you).
If you need to cancel a stream, you can `break` from a `for await` loop or call `stream.abort()`.
Expand Down

0 comments on commit 027da52

Please sign in to comment.