LogprobsResult

@Serializable
data class LogprobsResult(val chosenCandidates: List<LogprobsResultCandidate>? = null, val topCandidates: List<LogprobsResultTopCandidates>? = null, val logProbabilitySum: Double? = null)

Detailed log probabilities for the chosen and top candidate tokens.

Constructors

Link copied to clipboard
constructor(chosenCandidates: List<LogprobsResultCandidate>? = null, topCandidates: List<LogprobsResultTopCandidates>? = null, logProbabilitySum: Double? = null)

Properties

Link copied to clipboard

The chosen token at each decoding step.

Link copied to clipboard

The sum of log probabilities across the chosen tokens.

Link copied to clipboard

The top token candidates at each decoding step.