struct OpenAI::ChatCompletionChoice

Included Modules

Extended Modules

Defined in:

openai/api/chat.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(index : Int32, message : ChatMessage, finish_reason : FinishReason) #

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

[View source]

Instance Method Detail

def clone #

[View source]
def copy_with(index _index = @index, message _message = @message, finish_reason _finish_reason = @finish_reason) #

[View source]
def finish_reason : FinishReason #

def index : Int32 #

def message : ChatMessage #