class

OpenAI::FileExpirationAfter

Inherits JSON::Serializable < Reference < Object

The expiration policy for a file. By default, files with purpose=batch expire after 30 days and all other files are persisted until they are manually deleted.

Constructors

new(anchor : FileExpirationAfterAnchor = FileExpirationAfterAnchor::CreatedAt, seconds : Int64 = 0)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

anchor

Anchor timestamp after which the expiration policy applies. Supported anchors: created_at.

Source
anchor=(anchor : FileExpirationAfterAnchor)

Anchor timestamp after which the expiration policy applies. Supported anchors: created_at.

Source
seconds

The number of seconds after the anchor time that the file will expire. Must be between 3600 (1 hour) and 2592000 (30 days).

Source
seconds=(seconds : Int64)

The number of seconds after the anchor time that the file will expire. Must be between 3600 (1 hour) and 2592000 (30 days).

Source
validate!
Source