struct

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))
Source
new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

clone
Source
copy_with(tokens _tokens = @tokens, token_logprobs _token_logprobs = @token_logprobs, top_logprobs _top_logprobs = @top_logprobs, text_offset _text_offset = @text_offset)
Source
text_offset
token_logprobs
tokens
top_logprobs