struct OpenAI::ChatCompletionStreamChoice

Included Modules

Extended Modules

Defined in:

openai/api/chat.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(index : Int32, delta : ChatCompletionStreamChoiceDelta | Nil, finish_reason : FinishReason, content_filter_results : ContentFilterResults | Nil) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def clone #

[View source]
def content_filter_results : ContentFilterResults | Nil #

def copy_with(index _index = @index, delta _delta = @delta, finish_reason _finish_reason = @finish_reason, content_filter_results _content_filter_results = @content_filter_results) #

[View source]

def finish_reason : FinishReason #

def index : Int32 #