Skip to content

Commit 2efd5ea

Browse files
chore(internal): Fix README code samples. (#219)
1 parent d61305e commit 2efd5ea

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ chat_completion = client.chat.chat(
7676
],
7777
model="palmyra-x-004",
7878
)
79-
print(chat.choices[0].message.content)
79+
print(chat_completion.choices[0].message.content)
8080
```
8181

8282
With asynchronous usage, you import `AsyncWriter` instead of `Writer` and use `await` with each API call:
@@ -98,7 +98,7 @@ async def main() -> None:
9898
],
9999
model="palmyra-x-004",
100100
)
101-
print(chat.choices[0].message.content)
101+
print(chat_completion.choices[0].message.content)
102102

103103

104104
asyncio.run(main())

0 commit comments

Comments
 (0)