Skip to content

Examples and guides for using the OpenAI API

Fix typo in How_to_stream_completions.ipynb (#744)

Jiří Hofman8d329cf9a30e
diff --git a/examples/How_to_stream_completions.ipynb b/examples/How_to_stream_completions.ipynb
index 86c3fca5..83f7402b 100644
--- a/examples/How_to_stream_completions.ipynb
+++ b/examples/How_to_stream_completions.ipynb
@@ -17,7 +17,7 @@
"\n",
"## Downsides\n",
"\n",
- "Note that using `stream=True` in a production application makes it more difficult to moderate the content of the completions, as partial completions may be more difficult to evaluate. which has implications for [approved usage](https://beta.openai.com/docs/usage-guidelines).\n",
+ "Note that using `stream=True` in a production application makes it more difficult to moderate the content of the completions, as partial completions may be more difficult to evaluate. This may have implications for [approved usage](https://beta.openai.com/docs/usage-guidelines).\n",
"\n",
"Another small drawback of streaming responses is that the response no longer includes the `usage` field to tell you how many tokens were consumed. After receiving and combining all of the responses, you can calculate this yourself using [`tiktoken`](How_to_count_tokens_with_tiktoken.ipynb).\n",
"\n",