struct OpenAI::Completion

Included Modules

Defined in:

openai/completion.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(choices : Array(Choice), created : Int32, id : String, model : String) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def choices : Array(Choice) #

def clone #

[View source]
def copy_with(choices _choices = @choices, created _created = @created, id _id = @id, model _model = @model) #

[View source]
def created : Int32 #

def created_at #

[View source]
def id : String #

def model : String #