OpenAI::BatchFileExpirationAfter
Inherits JSON::Serializable < Reference < Object
The expiration policy for the output and/or error file that are generated for a batch.
Constructors
new(pull : JSON::PullParser)
Sourcenew(anchor : BatchFileExpirationAfterAnchor = BatchFileExpirationAfterAnchor::CreatedAt, seconds : Int64 = 0)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
anchor
Anchor timestamp after which the expiration policy applies. Supported anchors: created_at. Note that the anchor is the file creation time, not the time the batch is created.
anchor=(anchor : BatchFileExpirationAfterAnchor)
Anchor timestamp after which the expiration policy applies. Supported anchors: created_at. Note that the anchor is the file creation time, not the time the batch is created.
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