struct

OpenAI::CompletionResponse

Inherits JSON::Serializable / Struct / Value / Object

Constructors

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

Instance methods

choices

The list of completion choices the model generated for the input prompt.

Source
created

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

Source
id

A unique identifier for the completion.

Source
model

The model used for the completion.

Source
object

The object type, which is always "text_completion"

Source
usage

Usage statistics for the completion request.

Source