Chat Choice
@Serializable
One completion alternative returned inside a ChatCompletion.
A ChatCompletion may contain several choices when the request asked the model to produce multiple candidates; each choice has its own message and finish reason.
Constructors
Link copied to clipboard
constructor(finishReason: FinishReason, index: Long, message: ChatCompletionMessage, logprobs: LogProbs? = null)
Properties
Link copied to clipboard
Reason the model stopped generating tokens for this choice.
Link copied to clipboard
Position of the choice in ChatCompletion.choices.
Link copied to clipboard
Assistant message produced by the model.