OpenAIChunkChoice
@Serializable
A choice within a streaming OpenAIChatCompletionChunk.
Maps to one or more io.kory.core.chat.choice.ChatChunkChoice items depending on the delta content:
Reasoning deltas produce io.kory.core.message.content.Content.Reasoning.
Tool call deltas produce io.kory.core.message.content.Content.ToolCallDelta.
Text deltas produce io.kory.core.message.content.Content.Text.
Constructors
Link copied to clipboard
constructor(index: Int, delta: OpenAIDelta, finishReason: String? = null, logprobs: OpenAIChoiceLogprobs? = null)
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Converts this to a single core ChatChunkChoice.
Link copied to clipboard
Converts this to a list of core ChatChunkChoice items.