From 472cd44e45a45b0b4f12583a5402e8aeb121d7a2 Mon Sep 17 00:00:00 2001 From: Stainless Bot <107565488+stainless-bot@users.noreply.github.com> Date: Wed, 29 Nov 2023 21:29:58 -0500 Subject: [PATCH] docs: fix typo in readme (#904) --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 83392e9585..380ccc58d9 100644 --- a/README.md +++ b/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