struct OpenAI::Choice

Included Modules

Defined in:

openai/choice.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(finish_reason : String | Nil, index : Int32, logprobs : Logprobs | Nil, text : String) #

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

[View source]

Instance Method Detail

def clone #

[View source]
def copy_with(finish_reason _finish_reason = @finish_reason, index _index = @index, logprobs _logprobs = @logprobs, text _text = @text) #

[View source]
def finish_reason : String | Nil #

def index : Int32 #

def logprobs : Logprobs | Nil #

def text : String #