struct OpenAI::LogprobResult
- OpenAI::LogprobResult
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
Extended Modules
- JSON::Schema
Defined in:
openai/api/completion.crConstructors
- .new(tokens : Array(String), token_logprobs : Array(Float64), top_logprobs : 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 : Hash(String, Float64)
Constructor Detail
def self.new(tokens : Array(String), token_logprobs : Array(Float64), top_logprobs : 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)
#