OpenAITokenLogprob

@Serializable
data class OpenAITokenLogprob(val token: String, val bytes: List<Int>? = null, val logprob: Double, val topLogprobs: List<OpenAITopLogprob> = emptyList())

Log probability information for a single token.

See also

Constructors

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

Properties

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

UTF-8 byte representation of the token. null if there is no byte representation.

Link copied to clipboard

The log probability of this token. The value -9999.0 signifies that the token is very unlikely (outside the top most likely tokens).

Link copied to clipboard

The token string.

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