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 21, 2023
1 parent 8ffc7f8 commit 96a59b9
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 96a59b9

Please sign in to comment.