class

OpenAI::TopLogProb

Inherits JSON::Serializable < Reference < Object

The top log probability of a token.

Constructors

new(token : String = "", logprob : Float64 = 0.0, bytes : Array(Int64) = [] of Int64)
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