Skip to content

Commit

Permalink
chore: fix array indices in README examples
Browse files Browse the repository at this point in the history
  • Loading branch information
gradenr committed May 22, 2024
1 parent bc1bb7b commit 5056621
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ chat_completion = client.chat.completions.create(
],
model="llama3-8b-8192",
)
print(chat_completion.choices_0.message.content)
print(chat_completion.choices[0].message.content)
```

While you can provide an `api_key` keyword argument,
Expand Down Expand Up @@ -74,7 +74,7 @@ async def main() -> None:
],
model="llama3-8b-8192",
)
print(chat_completion.choices_0.message.content)
print(chat_completion.choices[0].message.content)


asyncio.run(main())
Expand Down

0 comments on commit 5056621

Please sign in to comment.