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