Skip to content

Commit 5458457

Browse files
docs(readme): minor updates (#894)
1 parent 124da87 commit 5458457

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ stream = client.chat.completions.create(
9494
messages=[{"role": "user", "content": "Say this is a test"}],
9595
stream=True,
9696
)
97-
for part in stream:
97+
for chunk in stream:
9898
if chunk.choices[0].delta.content is not None:
9999
print(part.choices[0].delta.content)
100100
```
@@ -111,7 +111,7 @@ stream = await client.chat.completions.create(
111111
messages=[{"role": "user", "content": "Say this is a test"}],
112112
stream=True,
113113
)
114-
async for part in stream:
114+
async for chunk in stream:
115115
if chunk.choices[0].delta.content is not None:
116116
print(part.choices[0].delta.content)
117117
```

0 commit comments

Comments
 (0)