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 21, 2024
1 parent e46d3ed commit bacc106
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 @@ -37,7 +37,7 @@ chat_completion = client.chat.completions.create(
],
model="mixtral-8x7b-32768",
)
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 @@ -66,7 +66,7 @@ async def main() -> None:
],
model="mixtral-8x7b-32768",
)
print(chat_completion.choices_0.message.content)
print(chat_completion.choices[0].message.content)


asyncio.run(main())
Expand Down

0 comments on commit bacc106

Please sign in to comment.