FIMChoice
@Serializable
One completion alternative returned inside a FIMCompletion.
For streamed FIM responses each emitted FIMCompletion typically carries a single FIMChoice whose text contains only the tokens produced since the previous chunk.
Constructors
Link copied to clipboard
constructor(text: String, index: Int, finishReason: FinishReason? = null, logprobs: FIMLogProbs? = null)
Properties
Link copied to clipboard
Reason the model stopped generating tokens, or null while the stream is still in progress.
Link copied to clipboard
Position of the choice in FIMCompletion.choices.
Link copied to clipboard
Log-probability information for the generated tokens, if requested via the logprobs parameter.