class

OpenAI::LogProb

Inherits JSON::Serializable < Reference < Object

The log probability of a token.

Constructors

new(token : String = "", logprob : Float64 = 0.0, bytes : Array(Int64) = [] of Int64, top_logprobs : Array(TopLogProb) = [] of TopLogProb)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

bytes
Source
bytes=(bytes : Array(Int64))
Source
logprob
Source
logprob=(logprob : Float64)
Source
token
Source
token=(token : String)
Source
top_logprobs
Source
top_logprobs=(top_logprobs : Array(TopLogProb))
Source