class

OpenAI::ChatCompletionMessageList

Inherits JSON::Serializable < Reference < Object

An object representing a list of chat completion messages.

Constructors

new(object : ChatCompletionMessageListObject = ChatCompletionMessageListObject::List, data : Array(Hash(String, JSON::Any)) = [] of Hash(String, JSON::Any), 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 message objects.

Source
data=(data : Array(Hash(String, JSON::Any)))

An array of chat completion message objects.

Source
first_id

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

Source
first_id=(first_id : String)

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

Source
has_more

Indicates whether there are more chat messages available.

Source
has_more=(has_more : Bool)

Indicates whether there are more chat messages available.

Source
last_id

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

Source
last_id=(last_id : String)

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

Source
object

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

Source
object=(object : ChatCompletionMessageListObject)

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

Source