Skip to content

Commit 9d81d35

Browse files
docs: remove or fix invalid readme examples
1 parent c6d4578 commit 9d81d35

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ chat_completion = client.chat.completions.create(
4040
],
4141
model="llama3-8b-8192",
4242
)
43-
print(chat_completion.choices[0].message.content)
43+
print(chat_completion.id)
4444
```
4545

4646
While you can provide an `api_key` keyword argument,
@@ -72,7 +72,7 @@ async def main() -> None:
7272
],
7373
model="llama3-8b-8192",
7474
)
75-
print(chat_completion.choices[0].message.content)
75+
print(chat_completion.id)
7676

7777

7878
asyncio.run(main())

0 commit comments

Comments
 (0)