Go SDKAPI ReferenceModelsChatChoice - Go SDKCopy pageChatChoice type definitionThe Go SDK and docs are currently in beta. Report issues on GitHub. Chat completion choice Fields FieldTypeRequiredDescriptionExampleFinishReason*components.ChatFinishReasonEnum✔️N/AstopIndexint64✔️Choice index0Logprobsoptionalnullable.OptionalNullable[components.ChatTokenLogprobs]➖Log probabilities for the completion{"content": [{"bytes": null,"logprob": -0.612345,"token": " Hello","top_logprobs": []}],“refusal”: null<br />}Messagecomponents.ChatAssistantMessage✔️Assistant message for requests and responses{"content": "What is the capital of France?","role": "user"}