class

OpenAI::ChatCompletionList

Inherits JSON::Serializable < Reference < Object

An object representing a list of Chat Completions.

Constructors

new(object : ChatCompletionListObject = ChatCompletionListObject::List, data : Array(CreateChatCompletionResponse) = [] of CreateChatCompletionResponse, first_id : String = "", last_id : String = "", has_more : Bool = false)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

data

An array of chat completion objects.

Source
data=(data : Array(CreateChatCompletionResponse))

An array of chat completion objects.

Source
first_id

The identifier of the first chat completion in the data array.

Source
first_id=(first_id : String)

The identifier of the first chat completion in the data array.

Source
has_more

Indicates whether there are more Chat Completions available.

Source
has_more=(has_more : Bool)

Indicates whether there are more Chat Completions available.

Source
last_id

The identifier of the last chat completion in the data array.

Source
last_id=(last_id : String)

The identifier of the last chat completion in the data array.

Source
object

The type of this object. It is always set to "list".

Source
object=(object : ChatCompletionListObject)

The type of this object. It is always set to "list".

Source