class

OpenAI::CreateContainerBody

Inherits JSON::Serializable < Reference < Object

Constructors

new(name : String = "", file_ids : Array(String) | Nil = nil, expires_after : CreateContainerBodyExpiresAfter | Nil = nil, memory_limit : CreateContainerBodyMemoryLimit | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

expires_after

Container expiration time in seconds relative to the 'anchor' time.

Source
expires_after=(expires_after : CreateContainerBodyExpiresAfter | Nil)

Container expiration time in seconds relative to the 'anchor' time.

Source
file_ids

IDs of files to copy to the container.

Source
file_ids=(file_ids : Array(String) | Nil)

IDs of files to copy to the container.

Source
memory_limit

Optional memory limit for the container. Defaults to "1g".

Source
memory_limit=(memory_limit : CreateContainerBodyMemoryLimit | Nil)

Optional memory limit for the container. Defaults to "1g".

Source
name

Name of the container to create.

Source
name=(name : String)

Name of the container to create.

Source