Skip to content

struct OpenAI::LogProb
inherits Struct #

Included modules

JSON::Serializable

Constructors#

.new(token : String, log_prob : Float64, top_log_probs : Array(TopLogProbs), bytes : Array(UInt8) | Nil = nil)#

View source

.new(pull : JSON::PullParser)#

View source

Methods#

#bytes : Array(UInt8) | ::Nil#

#clone#

View source

#copy_with(token _token = @token, log_prob _log_prob = @log_prob, top_log_probs _top_log_probs = @top_log_probs, bytes _bytes = @bytes)#

View source

#log_prob : Float64#

#token : String#

#top_log_probs : Array(TopLogProbs)#