LogProb

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

Log-probability information for a single chat-completion token.

Constructors

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

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 token as text.

Link copied to clipboard

Up to topLogprobs most likely alternatives considered at this position, each with its own log-probability.

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