We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 153e4a4 commit 34e1edfCopy full SHA for 34e1edf
helpers.md
@@ -139,6 +139,10 @@ It also supports all aforementioned [parsing helpers](#parsing-helpers).
139
Unlike `.create(stream=True)`, the `.stream()` method requires usage within a context manager to prevent accidental leakage of the response:
140
141
```py
142
+from openai import AsyncOpenAI
143
+
144
+client = AsyncOpenAI()
145
146
async with client.beta.chat.completions.stream(
147
model='gpt-4o-2024-08-06',
148
messages=[...],
0 commit comments