struct

OpenAI::ChatCompletionStreamResponse

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
prompt_annotations
Source