FIMChoice

@Serializable
class FIMChoice(val text: String, val index: Int, val finishReason: FinishReason? = null, val logprobs: FIMLogProbs? = null)

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
val index: Int

Position of the choice in FIMCompletion.choices.

Link copied to clipboard

Log-probability information for the generated tokens, if requested via the logprobs parameter.

Link copied to clipboard

Generated text for this choice. In streaming mode this contains only the incremental tokens for the current chunk.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String