From 37c469deecad9f6244d42dce7d3cedc289ca129b Mon Sep 17 00:00:00 2001 From: Abi Raja Date: Tue, 5 Mar 2024 05:45:23 -0500 Subject: [PATCH] docs(readme): fix async streaming snippet (#366) --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 07b49705..3996f08c 100644 --- a/README.md +++ b/README.md @@ -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,