OpenAI::LogProb
Inherits JSON::Serializable < Reference < Object
The log probability of a token.
Constructors
new(pull : JSON::PullParser)
Sourcenew(token : String = "", logprob : Float64 = 0.0, bytes : Array(Int64) = [] of Int64, top_logprobs : Array(TopLogProb) = [] of TopLogProb)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
bytes
Sourcelogprob
Sourcetoken
Sourcetop_logprobs
Source