Skip to content

struct OpenAI::CompletionResponse
inherits Struct #

Included modules

JSON::Serializable

Constructors#

.new(id : String, object : String, created : Int64, model : String, choices : Array(CompletionChoice), usage : Usage)#

View source

.new(pull : JSON::PullParser)#

View source

Methods#

#choices : Array(CompletionChoice)#

#clone#

View source

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

View source

#created : Int64#

#id : String#

#model : String#

#object : String#

#usage : Usage#