> ## 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 - Go SDK

> ChatChoice type definition

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

Chat completion choice

## Fields

| Field          | Type                                                                                                                       | Required             | Description                                  | Example                                                                                                                       |
| -------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------- | -------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
| `FinishReason` | [\*components.ChatFinishReasonEnum](/client-sdks/go/api-reference/models/chatfinishreasonenum)                             | :heavy\_check\_mark: | N/A                                          | stop                                                                                                                          |
| `Index`        | `int64`                                                                                                                    | :heavy\_check\_mark: | Choice index                                 | 0                                                                                                                             |
| `Logprobs`     | optionalnullable.OptionalNullable\[[components.ChatTokenLogprobs](/client-sdks/go/api-reference/models/chattokenlogprobs)] | :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/go/api-reference/models/chatassistantmessage)                               | :heavy\_check\_mark: | Assistant message for requests and responses | `{"content": "What is the capital of France?","role": "user"}`                                                                |
