OpenAI::ChatCompletionTokenLogprob
Inherits JSON::Serializable < Reference < Object
Constructors
new(pull : JSON::PullParser)
Sourcenew(token : String = "", logprob : Float64 = 0.0, bytes : ChatCompletionTokenLogprobBytes = nil, top_logprobs : Array(ChatCompletionTokenLogprobTopLogprobsItem) = [] of ChatCompletionTokenLogprobTopLogprobsItem)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
bytes
Sourcebytes=(bytes : ChatCompletionTokenLogprobBytes)
Sourcelogprob
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.
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.
top_logprobs
List of the most likely tokens and their log probability, at this token position. In rare cases, there may be fewer than the number of requested top_logprobs returned.