struct Turquoise::Eloquent::Chat::Completion

Included Modules

Defined in:

turquoise/eloquent/api.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def choices : Array(NamedTuple(index: Int32, message: Message, finish_reason: String)) #

[View source]
def choices=(choices : Array(NamedTuple(index: Int32, message: Message, finish_reason: String))) #

[View source]
def created : Int32 #

[View source]
def created=(created : Int32) #

[View source]
def id : String #

[View source]
def id=(id : String) #

[View source]
def model : String #

[View source]
def model=(model : String) #

[View source]
def object : String #

[View source]
def object=(object : String) #

[View source]
def usage : NamedTuple(prompt_tokens: Int32, completion_tokens: Int32, total_tokens: Int32) #

[View source]
def usage=(usage : NamedTuple(prompt_tokens: Int32, completion_tokens: Int32, total_tokens: Int32)) #

[View source]