Class: OpenAI::Models::BatchCreateParams::OutputExpiresAfter

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/batch_create_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(seconds:, anchor: :created_at) ⇒ Object

Some parameter documentations has been truncated, see OpenAI::Models::BatchCreateParams::OutputExpiresAfter for more details.

The expiration policy for the output and/or error file that are generated for a batch.

Parameters:

  • seconds (Integer)

    The number of seconds after the anchor time that the file will expire. Must be b

  • anchor (Symbol, :created_at) (defaults to: :created_at)

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



# File 'lib/openai/models/batch_create_params.rb', line 120


Instance Attribute Details

#anchorSymbol, :created_at

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.

Returns:

  • (Symbol, :created_at)


111
# File 'lib/openai/models/batch_create_params.rb', line 111

required :anchor, const: :created_at

#secondsInteger

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

Returns:

  • (Integer)


118
# File 'lib/openai/models/batch_create_params.rb', line 118

required :seconds, Integer