Class: OpenAI::Models::Batch
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Batch
- Defined in:
- lib/openai/models/batch.rb
Overview
Defined Under Namespace
Modules: Status Classes: Errors
Instance Attribute Summary collapse
-
#cancelled_at ⇒ Integer?
The Unix timestamp (in seconds) for when the batch was cancelled.
-
#cancelling_at ⇒ Integer?
The Unix timestamp (in seconds) for when the batch started cancelling.
-
#completed_at ⇒ Integer?
The Unix timestamp (in seconds) for when the batch was completed.
-
#completion_window ⇒ String
The time frame within which the batch should be processed.
-
#created_at ⇒ Integer
The Unix timestamp (in seconds) for when the batch was created.
-
#endpoint ⇒ String
The OpenAI API endpoint used by the batch.
-
#error_file_id ⇒ String?
The ID of the file containing the outputs of requests with errors.
- #errors ⇒ OpenAI::Models::Batch::Errors?
-
#expired_at ⇒ Integer?
The Unix timestamp (in seconds) for when the batch expired.
-
#expires_at ⇒ Integer?
The Unix timestamp (in seconds) for when the batch will expire.
-
#failed_at ⇒ Integer?
The Unix timestamp (in seconds) for when the batch failed.
-
#finalizing_at ⇒ Integer?
The Unix timestamp (in seconds) for when the batch started finalizing.
- #id ⇒ String
-
#in_progress_at ⇒ Integer?
The Unix timestamp (in seconds) for when the batch started processing.
-
#input_file_id ⇒ String
The ID of the input file for the batch.
-
#metadata ⇒ Hash{Symbol=>String}?
Set of 16 key-value pairs that can be attached to an object.
-
#object ⇒ Symbol, :batch
The object type, which is always ‘batch`.
-
#output_file_id ⇒ String?
The ID of the file containing the outputs of successfully executed requests.
-
#request_counts ⇒ OpenAI::Models::BatchRequestCounts?
The request counts for different statuses within the batch.
-
#status ⇒ Symbol, OpenAI::Models::Batch::Status
The current status of the batch.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id: , completion_window: , created_at: , endpoint: , input_file_id: , status: , cancelled_at: nil, cancelling_at: nil, completed_at: nil, error_file_id: nil, errors: nil, expired_at: nil, expires_at: nil, failed_at: nil, finalizing_at: nil, in_progress_at: nil, metadata: nil, output_file_id: nil, request_counts: nil, object: :batch) ⇒ Object
constructor
Some parameter documentations has been truncated, see Batch for more details.
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, 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(id: , completion_window: , created_at: , endpoint: , input_file_id: , status: , cancelled_at: nil, cancelling_at: nil, completed_at: nil, error_file_id: nil, errors: nil, expired_at: nil, expires_at: nil, failed_at: nil, finalizing_at: nil, in_progress_at: nil, metadata: nil, output_file_id: nil, request_counts: nil, object: :batch) ⇒ Object
Some parameter documentations has been truncated, see OpenAI::Models::Batch for more details.
|
# File 'lib/openai/models/batch.rb', line 130
|
Instance Attribute Details
#cancelled_at ⇒ Integer?
The Unix timestamp (in seconds) for when the batch was cancelled.
52 |
# File 'lib/openai/models/batch.rb', line 52 optional :cancelled_at, Integer |
#cancelling_at ⇒ Integer?
The Unix timestamp (in seconds) for when the batch started cancelling.
58 |
# File 'lib/openai/models/batch.rb', line 58 optional :cancelling_at, Integer |
#completed_at ⇒ Integer?
The Unix timestamp (in seconds) for when the batch was completed.
64 |
# File 'lib/openai/models/batch.rb', line 64 optional :completed_at, Integer |
#completion_window ⇒ String
The time frame within which the batch should be processed.
16 |
# File 'lib/openai/models/batch.rb', line 16 required :completion_window, String |
#created_at ⇒ Integer
The Unix timestamp (in seconds) for when the batch was created.
22 |
# File 'lib/openai/models/batch.rb', line 22 required :created_at, Integer |
#endpoint ⇒ String
The OpenAI API endpoint used by the batch.
28 |
# File 'lib/openai/models/batch.rb', line 28 required :endpoint, String |
#error_file_id ⇒ String?
The ID of the file containing the outputs of requests with errors.
70 |
# File 'lib/openai/models/batch.rb', line 70 optional :error_file_id, String |
#errors ⇒ OpenAI::Models::Batch::Errors?
75 |
# File 'lib/openai/models/batch.rb', line 75 optional :errors, -> { OpenAI::Batch::Errors } |
#expired_at ⇒ Integer?
The Unix timestamp (in seconds) for when the batch expired.
81 |
# File 'lib/openai/models/batch.rb', line 81 optional :expired_at, Integer |
#expires_at ⇒ Integer?
The Unix timestamp (in seconds) for when the batch will expire.
87 |
# File 'lib/openai/models/batch.rb', line 87 optional :expires_at, Integer |
#failed_at ⇒ Integer?
The Unix timestamp (in seconds) for when the batch failed.
93 |
# File 'lib/openai/models/batch.rb', line 93 optional :failed_at, Integer |
#finalizing_at ⇒ Integer?
The Unix timestamp (in seconds) for when the batch started finalizing.
99 |
# File 'lib/openai/models/batch.rb', line 99 optional :finalizing_at, Integer |
#id ⇒ String
10 |
# File 'lib/openai/models/batch.rb', line 10 required :id, String |
#in_progress_at ⇒ Integer?
The Unix timestamp (in seconds) for when the batch started processing.
105 |
# File 'lib/openai/models/batch.rb', line 105 optional :in_progress_at, Integer |
#input_file_id ⇒ String
The ID of the input file for the batch.
34 |
# File 'lib/openai/models/batch.rb', line 34 required :input_file_id, String |
#metadata ⇒ Hash{Symbol=>String}?
Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard.
Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.
116 |
# File 'lib/openai/models/batch.rb', line 116 optional :metadata, OpenAI::Internal::Type::HashOf[String], nil?: true |
#object ⇒ Symbol, :batch
The object type, which is always ‘batch`.
40 |
# File 'lib/openai/models/batch.rb', line 40 required :object, const: :batch |
#output_file_id ⇒ String?
The ID of the file containing the outputs of successfully executed requests.
122 |
# File 'lib/openai/models/batch.rb', line 122 optional :output_file_id, String |
#request_counts ⇒ OpenAI::Models::BatchRequestCounts?
The request counts for different statuses within the batch.
128 |
# File 'lib/openai/models/batch.rb', line 128 optional :request_counts, -> { OpenAI::BatchRequestCounts } |
#status ⇒ Symbol, OpenAI::Models::Batch::Status
The current status of the batch.
46 |
# File 'lib/openai/models/batch.rb', line 46 required :status, enum: -> { OpenAI::Batch::Status } |
Class Method Details
.values ⇒ Array<Symbol>
|
# File 'lib/openai/models/batch.rb', line 189
|