struct OpenAI::ChatCompletionResponse

Included Modules

Extended Modules

Defined in:

openai/api/chat.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]

Instance Method Detail

def choices : Array(ChatCompletionChoice) #

A list of chat completion choices. Can be more than one if n is greater than 1.


[View source]
def created : Time #

[View source]
def id : String #

A unique identifier for the chat completion.


[View source]
def model : String #

The model used for the chat completion.


[View source]
def object : String #

The object type, which is always chat.completion.


[View source]
def system_fingerprint : String | Nil #

This fingerprint represents the backend configuration that the model runs with. Can be used in conjunction with the seed request parameter to understand when backend changes have been made that might impact determinism.


[View source]
def usage : Usage #

Usage statistics for the completion request.


[View source]