struct

OpenAI::Completion

Inherits JSON::Serializable / Struct / Value / Object

Constructors

new(choices : Array(Choice), created : Int32, id : String, model : String)
Source
new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

choices
clone
Source
copy_with(choices _choices = @choices, created _created = @created, id _id = @id, model _model = @model)
Source
created
created_at
Source
id
model