struct OpenAI::ChatCompletionResponse
inherits Struct
#
Included modules
JSON::Serializable
OpenAI::ChatCompletionResponse
Struct
#JSON::Serializable
.new(id : String, object : String, created : Int64, model : String, choices : Array(ChatCompletionChoice), usage : Usage, system_fingerprint : String | Nil = nil)
##choices : Array(ChatCompletionChoice)
##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)
##created : Int64
##id : String
##model : String
##object : String
##system_fingerprint : String | ::Nil
##usage : Usage
#