struct OpenAI::CompletionChoice

Included Modules

Extended Modules

Defined in:

openai/api/completion.cr

Constructors

Instance Method Summary

Constructor Detail

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

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

[View source]

Instance Method Detail

def clone #

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

[View source]
def finish_reason : FinishReason #

def index : Int32 #

def logprobs : LogprobResult | Nil #

def text : String #