class

OpenAI::ChatCompletionTokenLogprobTopLogprobsItem

Inherits JSON::Serializable < Reference < Object

Constructors

new(token : String = "", logprob : Float64 = 0.0, bytes : ChatCompletionTokenLogprobTopLogprobsItemBytes = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

bytes
Source
bytes=(bytes : ChatCompletionTokenLogprobTopLogprobsItemBytes)
Source
logprob

The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value -9999.0 is used to signify that the token is very unlikely.

Source
logprob=(logprob : Float64)

The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value -9999.0 is used to signify that the token is very unlikely.

Source
token

The token.

Source
token=(token : String)

The token.

Source