TopLogprob

@Serializable
data class TopLogprob(val bytes: List<Int>, val logprob: Int, val token: String)(source)

A single alternative-token candidate with its log-probability.

Constructors

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

Properties

Link copied to clipboard
@SerialName(value = "bytes")
val bytes: List<Int>

Raw byte sequence of the candidate token.

Link copied to clipboard
@SerialName(value = "logprob")
val logprob: Int

Natural log of the probability the model assigned to this token.

Link copied to clipboard
@SerialName(value = "token")
val token: String

Decoded string form of the candidate token.