We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d61305e commit 2efd5eaCopy full SHA for 2efd5ea
1 file changed
README.md
@@ -76,7 +76,7 @@ chat_completion = client.chat.chat(
76
],
77
model="palmyra-x-004",
78
)
79
-print(chat.choices[0].message.content)
+print(chat_completion.choices[0].message.content)
80
```
81
82
With asynchronous usage, you import `AsyncWriter` instead of `Writer` and use `await` with each API call:
@@ -98,7 +98,7 @@ async def main() -> None:
98
99
100
101
- print(chat.choices[0].message.content)
+ print(chat_completion.choices[0].message.content)
102
103
104
asyncio.run(main())
0 commit comments