> ## Documentation Index
> Fetch the complete documentation index at: https://openrouter-d02e98a0-mintlify-7021d5f4.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# ChatChoice - Python SDK

> ChatChoice method reference

<Warning>
  The Python SDK and docs are currently in beta.
  Report issues on [GitHub](https://github.com/OpenRouterTeam/python-sdk/issues).
</Warning>

Chat completion choice

## Fields

| Field           | Type                                                                                                 | Required             | Description                                  | Example                                                                                                                       |
| --------------- | ---------------------------------------------------------------------------------------------------- | -------------------- | -------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
| `finish_reason` | [Nullable\[components.ChatFinishReasonEnum\]](../components/chatfinishreasonenum.md)                 | :heavy\_check\_mark: | N/A                                          | stop                                                                                                                          |
| `index`         | *int*                                                                                                | :heavy\_check\_mark: | Choice index                                 | 0                                                                                                                             |
| `logprobs`      | [OptionalNullable\[components.ChatTokenLogprobs\]](../components/chattokenlogprobs.md)               | :heavy\_minus\_sign: | Log probabilities for the completion         | `{"content": [{"bytes": null,"logprob": -0.612345,"token": " Hello","top_logprobs": []}`<br />],<br />"refusal": `null<br/>`} |
| `message`       | [components.ChatAssistantMessage](/client-sdks/python/api-reference/components/chatassistantmessage) | :heavy\_check\_mark: | Assistant message for requests and responses | `{"content": "What is the capital of France?","role": "user"}`                                                                |
