OpenAI::CompletionChoice
Inherits JSON::Serializable / Struct / Value / Object
Constructors
new(text : String, index : Int32, logprobs : LogprobResult | Nil, finish_reason : FinishReason)
Sourcenew(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
clone
Sourcecopy_with(text _text = @text, index _index = @index, logprobs _logprobs = @logprobs, finish_reason _finish_reason = @finish_reason)
Sourcefinish_reason
index
logprobs
text