struct AI::OpenAI::OpenAIChatResponse

Overview

Full chat completion response.

Included Modules

Defined in:

ai/openai/chat/openai_chat_api.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]
def self.new(choices : Array(OpenAIChatResponseChoice), id : String | Nil = nil, created : Int64 | Nil = nil, model : String | Nil = nil, usage : OpenAIChatUsage | Nil = nil) #

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

[View source]

Instance Method Detail

def choices : Array(OpenAIChatResponseChoice) #

[View source]
def created : Int64 | Nil #

[View source]
def id : String | Nil #

[View source]
def model : String | Nil #

[View source]
def usage : OpenAIChatUsage | Nil #

[View source]