OpenAI::ResponseLogProb
Inherits JSON::Serializable < Reference < Object
A logprob is the logarithmic probability that the model assigns to producing a particular token at a given position in the sequence. Less-negative (higher) logprob values indicate greater model confidence in that token choice.
Constructors
new(pull : JSON::PullParser)
Sourcenew(token : String = "", logprob : Float64 = 0.0, top_logprobs : Array(ResponseLogProbTopLogprobsItem) | Nil = nil)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
Source