class

OpenAI::CreateCompletionResponseChoicesItemLogprobsVariant1

Inherits JSON::Serializable < Reference < Object

Constructors

new(text_offset : Array(Int64) | Nil = nil, token_logprobs : Array(Float64) | Nil = nil, tokens : Array(String) | Nil = nil, top_logprobs : Array(Hash(String, Float64)) | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

text_offset
Source
text_offset=(text_offset : Array(Int64) | Nil)
Source
token_logprobs
Source
token_logprobs=(token_logprobs : Array(Float64) | Nil)
Source
tokens
Source
tokens=(tokens : Array(String) | Nil)
Source
top_logprobs
Source
top_logprobs=(top_logprobs : Array(Hash(String, Float64)) | Nil)
Source