FIMLogProbs

@Serializable
class FIMLogProbs(val textOffset: List<Int>, val tokenLogprobs: List<Double>, val tokens: List<String>, val topLogprobs: List<Map<String, Double>>? = null)

Log-probability information attached to a FIMChoice.

Uses the legacy completions shape — aligned parallel lists over the generated tokens — which differs from the per-token LogProb shape returned by chat endpoints.

Constructors

Link copied to clipboard
constructor(textOffset: List<Int>, tokenLogprobs: List<Double>, tokens: List<String>, topLogprobs: List<Map<String, Double>>? = null)

Properties

Link copied to clipboard

Character offset of each token into the generated text.

Link copied to clipboard

Natural-log probability of each token in tokens.

Link copied to clipboard

The generated tokens as text.

Link copied to clipboard

For each generated token position, a map from candidate token text to its natural-log probability. Populated only when the request sets logprobs > 0; null otherwise. Candidates that were considered but scored out of range typically appear with a sentinel value of -9999.0.

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