We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 124da87 commit 5458457Copy full SHA for 5458457
README.md
@@ -94,7 +94,7 @@ stream = client.chat.completions.create(
94
messages=[{"role": "user", "content": "Say this is a test"}],
95
stream=True,
96
)
97
-for part in stream:
+for chunk in stream:
98
if chunk.choices[0].delta.content is not None:
99
print(part.choices[0].delta.content)
100
```
@@ -111,7 +111,7 @@ stream = await client.chat.completions.create(
111
112
113
114
-async for part in stream:
+async for chunk in stream:
115
116
117
0 commit comments