Logprob

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

Log-probability information for a single emitted token plus its alternatives.

Constructors

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

Properties

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

Raw byte sequence of the emitted token.

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

Natural log of the probability assigned to the emitted token.

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

Decoded string form of the emitted token.

Link copied to clipboard
@SerialName(value = "top_logprobs")
val topLogprobs: List<TopLogprob>

Top-k alternative tokens the model considered at this position.