Skip to content

struct OpenAI::ChatCompletionResponse
inherits Struct #

Included modules

JSON::Serializable

Constructors#

.new(id : String, object : String, created : Int64, model : String, choices : Array(ChatCompletionChoice), usage : Usage, system_fingerprint : String | Nil = nil)#

View source

.new(pull : JSON::PullParser)#

View source

Methods#

#choices : Array(ChatCompletionChoice)#

#clone#

View source

#copy_with(id _id = @id, object _object = @object, created _created = @created, model _model = @model, choices _choices = @choices, usage _usage = @usage, system_fingerprint _system_fingerprint = @system_fingerprint)#

View source

#created : Int64#

#id : String#

#model : String#

#object : String#

#system_fingerprint : String | ::Nil#

#usage : Usage#