struct

OpenAI::Choice

Inherits JSON::Serializable / Struct / Value / Object

Constructors

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

Instance methods

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