From c84cec738938cebbfb917f441808b4731cccaba6 Mon Sep 17 00:00:00 2001 From: Sarah Deaton Date: Fri, 21 Mar 2025 13:14:10 -0700 Subject: [PATCH] chore(internal): Fix README code samples. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 839e3bb0..39daa061 100644 --- a/README.md +++ b/README.md @@ -76,7 +76,7 @@ chat_completion = client.chat.chat( ], model="palmyra-x-004", ) -print(chat.choices[0].message.content) +print(chat_completion.choices[0].message.content) ``` With asynchronous usage, you import `AsyncWriter` instead of `Writer` and use `await` with each API call: @@ -98,7 +98,7 @@ async def main() -> None: ], model="palmyra-x-004", ) - print(chat.choices[0].message.content) + print(chat_completion.choices[0].message.content) asyncio.run(main())