struct OpenAI::CompletionChoice
- OpenAI::CompletionChoice
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
Extended Modules
- JSON::Schema
Defined in:
openai/api/completion.crConstructors
- .new(text : String, index : Int32, logprobs : LogprobResult | Nil, finish_reason : FinishReason)
- .new(pull : JSON::PullParser)
Instance Method Summary
- #clone
- #copy_with(text _text = @text, index _index = @index, logprobs _logprobs = @logprobs, finish_reason _finish_reason = @finish_reason)
- #finish_reason : FinishReason
- #index : Int32
- #logprobs : LogprobResult | Nil
- #text : String
Constructor Detail
def self.new(text : String, index : Int32, logprobs : LogprobResult | Nil, finish_reason : FinishReason)
#
Instance Method Detail
def copy_with(text _text = @text, index _index = @index, logprobs _logprobs = @logprobs, finish_reason _finish_reason = @finish_reason)
#