TopLogProb

@Serializable
class TopLogProb(val token: String, val logprob: Double, val bytes: List<Int>?)

One of the top alternatives considered at a given token position in LogProb.topLogprobs.

Constructors

Link copied to clipboard
constructor(token: String, logprob: Double, bytes: List<Int>?)

Properties

Link copied to clipboard
val bytes: List<Int>?

UTF-8 byte values of token, or null if the token is not byte-aligned.

Link copied to clipboard

Natural-log probability the model assigned to token.

Link copied to clipboard

The alternative token as text.

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