struct OpenAI::Logprobs
- OpenAI::Logprobs
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
Defined in:
openai/logprobs.crConstructors
- .new(tokens : Array(String), token_logprobs : Array(Float64), top_logprobs : Array(Hash(String, Float64)), text_offset : Array(Int32))
- .new(pull : JSON::PullParser)
Instance Method Summary
- #clone
- #copy_with(tokens _tokens = @tokens, token_logprobs _token_logprobs = @token_logprobs, top_logprobs _top_logprobs = @top_logprobs, text_offset _text_offset = @text_offset)
- #text_offset : Array(Int32)
- #token_logprobs : Array(Float64)
- #tokens : Array(String)
- #top_logprobs : Array(Hash(String, Float64))
Constructor Detail
def self.new(tokens : Array(String), token_logprobs : Array(Float64), top_logprobs : Array(Hash(String, Float64)), text_offset : Array(Int32))
#
Instance Method Detail
def copy_with(tokens _tokens = @tokens, token_logprobs _token_logprobs = @token_logprobs, top_logprobs _top_logprobs = @top_logprobs, text_offset _text_offset = @text_offset)
#