OpenAI::Logprobs
Inherits JSON::Serializable / Struct / Value / Object
Constructors
new(tokens : Array(String), token_logprobs : Array(Float64), top_logprobs : Array(Hash(String, Float64)), text_offset : Array(Int32))
Sourcenew(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
clone
Sourcecopy_with(tokens _tokens = @tokens, token_logprobs _token_logprobs = @token_logprobs, top_logprobs _top_logprobs = @top_logprobs, text_offset _text_offset = @text_offset)
Sourcetext_offset
token_logprobs
tokens
top_logprobs