Skip to content

Commit

Permalink
docs: fix typo in readme (#904)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot authored Nov 30, 2023
1 parent e025e6b commit 472cd44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ stream = client.chat.completions.create(
)
for chunk in stream:
if chunk.choices[0].delta.content is not None:
print(part.choices[0].delta.content)
print(chunk.choices[0].delta.content)
```

The async client uses the exact same interface.
Expand All @@ -113,7 +113,7 @@ stream = await client.chat.completions.create(
)
async for chunk in stream:
if chunk.choices[0].delta.content is not None:
print(part.choices[0].delta.content)
print(chunk.choices[0].delta.content)
```

## Module-level client
Expand Down

0 comments on commit 472cd44

Please sign in to comment.