struct OpenAI::ChatCompletionChoice
- OpenAI::ChatCompletionChoice
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
Extended Modules
- JSON::Schema
Defined in:
openai/api/chat.crConstructors
- .new(index : Int32, message : ChatMessage, finish_reason : FinishReason)
- .new(pull : JSON::PullParser)
Instance Method Summary
- #clone
- #copy_with(index _index = @index, message _message = @message, finish_reason _finish_reason = @finish_reason)
- #finish_reason : FinishReason
- #index : Int32
- #message : ChatMessage
Constructor Detail
Instance Method Detail
def copy_with(index _index = @index, message _message = @message, finish_reason _finish_reason = @finish_reason)
#