Commit bcfbab70

Stainless Bot <107565488+stainless-bot@users.noreply.github.com>
2023-11-30 10:29:58
docs: fix typo in readme (#904)
1 parent 7aad340
Changed files (1)
README.md
@@ -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.
@@ -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