Skip to content

struct OpenAI::CompletionChoice
inherits Struct #

Included modules

JSON::Serializable

Constructors#

.new(text : String, index : Int32, finish_reason : String, logprobs : LogProbResult | Nil)#

View source

.new(pull : JSON::PullParser)#

View source

Methods#

#clone#

View source

#copy_with(text _text = @text, index _index = @index, finish_reason _finish_reason = @finish_reason, logprobs _logprobs = @logprobs)#

View source

#finish_reason : String#

#index : Int32#

#logprobs : LogProbResult | ::Nil#

#text : String#