We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0bdff17 commit 767ede2Copy full SHA for 767ede2
README.md
@@ -96,7 +96,7 @@ stream = client.chat.completions.create(
96
)
97
for chunk in stream:
98
if chunk.choices[0].delta.content is not None:
99
- print(part.choices[0].delta.content)
+ print(chunk.choices[0].delta.content)
100
```
101
102
The async client uses the exact same interface.
@@ -113,7 +113,7 @@ stream = await client.chat.completions.create(
113
114
async for chunk in stream:
115
116
117
118
119
## Module-level client
0 commit comments