struct

OpenAI::ChatCompletionResponse

Inherits JSON::Serializable / Struct / Value / Object

Constructors

new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

choices

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

Source
created

The Unix timestamp (in seconds) of when the chat completion was created.

Source
id

A unique identifier for the chat completion.

Source
model

The model used for the chat completion.

Source
object

The object type, which is always chat.completion.

Source
system_fingerprint

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.

Source
usage

Usage statistics for the completion request.

Source