struct OpenAI::LogProbResult
inherits Struct
Included modules
JSON::Serializable
Constructors
.new(tokens : Array(String), token_lobprobs : Array(Float32), top_logprobs : Array(Hash(String, Float32)), text_offset : Array(Int32))
View source
Methods
#copy_with(tokens _tokens = @tokens, token_lobprobs _token_lobprobs = @token_lobprobs, top_logprobs _top_logprobs = @top_logprobs, text_offset _text_offset = @text_offset)
View source
#text_offset : Array(Int32)
#token_lobprobs : Array(Float32)
#top_logprobs : Array(Hash(String, Float32))