Chat Choice Chunk
@Serializable
One choice slice carried by a streamed ChatCompletionChunk.
Each chunk's choice delivers only the tokens produced since the previous chunk via delta. finishReason is null until the stream terminates on this choice.
Constructors
Link copied to clipboard
constructor(delta: ChatCompletionDelta, finishReason: FinishReason?, index: Long, logprobs: LogProbs? = null)
Properties
Link copied to clipboard
Incremental message fragment produced on this step.
Link copied to clipboard
Reason the model stopped generating tokens for this choice, or null if generation is still in progress.
Link copied to clipboard
Position of the choice in ChatCompletionChunk.choices.