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(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
anchor
Anchor timestamp after which the expiration policy applies. Supported anchors: created_at.
anchor=(anchor : FileExpirationAfterAnchor)
Anchor timestamp after which the expiration policy applies. Supported anchors: created_at.
seconds
The number of seconds after the anchor time that the file will expire. Must be between 3600 (1 hour) and 2592000 (30 days).
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).
validate!
Source