Skip to content

Commit

Permalink
docs(readme): fix async streaming snippet (#366)
Browse files Browse the repository at this point in the history
  • Loading branch information
abi authored Mar 5, 2024
1 parent 2f4df72 commit 37c469d
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 @@ -109,9 +109,9 @@ for event in stream:
The async client uses the exact same interface.

```python
from anthropic import Anthropic
from anthropic import AsyncAnthropic

client = Anthropic()
client = AsyncAnthropic()

stream = await client.messages.create(
max_tokens=1024,
Expand Down

0 comments on commit 37c469d

Please sign in to comment.