struct

Crig::Providers::OpenAI::Chat::Choice

Inherits JSON::Serializable < Struct < Value < Object

Constructors

from_json_value(value : JSON::Any) : self
Source
new(index : Int32, message : Message, logprobs : JSON::Any | Nil = nil, finish_reason : String = "stop")
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

finish_reason
Source
index
Source
logprobs
Source
message
Source