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 authored and stainless-app[bot] committed May 22, 2024
1 parent baea005 commit 7ba14e6
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 7ba14e6

Please sign in to comment.