ChatChoice

@Serializable
data class ChatChoice(val index: Int, val message: ChatMessage, val finishReason: FinishReason? = null, val logprobs: Logprobs? = null)

A completion generated by OpenAI.

documentation

Constructors

Link copied to clipboard
constructor(index: Int, message: ChatMessage, finishReason: FinishReason? = null, logprobs: Logprobs? = null)

Properties

Link copied to clipboard

The reason why OpenAI stopped generating.

Link copied to clipboard
val index: Int

Chat choice index.

Link copied to clipboard
val logprobs: Logprobs? = null

Log probability information for the choice.

Link copied to clipboard

The generated chat message.