struct

OpenAI::CompletionChoice

Inherits JSON::Serializable / Struct / Value / Object

Constructors

new(text : String, index : Int32, logprobs : LogprobResult | Nil, finish_reason : FinishReason)
Source
new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

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