Commit 54c7c512

Stainless Bot <107565488+stainless-bot@users.noreply.github.com>
2023-11-29 06:18:32
docs(readme): minor updates (#894)
1 parent 738abb5
Changed files (1)
README.md
@@ -94,7 +94,7 @@ stream = client.chat.completions.create(
     messages=[{"role": "user", "content": "Say this is a test"}],
     stream=True,
 )
-for part in stream:
+for chunk in stream:
     if chunk.choices[0].delta.content is not None:
         print(part.choices[0].delta.content)
 ```
@@ -111,7 +111,7 @@ stream = await client.chat.completions.create(
     messages=[{"role": "user", "content": "Say this is a test"}],
     stream=True,
 )
-async for part in stream:
+async for chunk in stream:
     if chunk.choices[0].delta.content is not None:
         print(part.choices[0].delta.content)
 ```