struct OpenAI::ChatCompletionStreamChoice
- OpenAI::ChatCompletionStreamChoice
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
Extended Modules
- JSON::Schema
Defined in:
openai/api/chat.crConstructors
- .new(index : Int32, delta : ChatCompletionStreamChoiceDelta | Nil, finish_reason : FinishReason, content_filter_results : ContentFilterResults | Nil)
- .new(pull : JSON::PullParser)
Instance Method Summary
- #clone
- #content_filter_results : ContentFilterResults | Nil
- #copy_with(index _index = @index, delta _delta = @delta, finish_reason _finish_reason = @finish_reason, content_filter_results _content_filter_results = @content_filter_results)
- #delta : ChatCompletionStreamChoiceDelta | Nil
- #finish_reason : FinishReason
- #index : Int32
Constructor Detail
def self.new(index : Int32, delta : ChatCompletionStreamChoiceDelta | Nil, finish_reason : FinishReason, content_filter_results : ContentFilterResults | Nil)
#
Instance Method Detail
def copy_with(index _index = @index, delta _delta = @delta, finish_reason _finish_reason = @finish_reason, content_filter_results _content_filter_results = @content_filter_results)
#