pub struct Batch {Show 20 fields
pub id: String,
pub object: String,
pub endpoint: String,
pub errors: Option<Batch_Errors>,
pub input_file_id: String,
pub completion_window: String,
pub status: String,
pub output_file_id: Option<String>,
pub error_file_id: Option<String>,
pub created_at: i64,
pub in_progress_at: Option<i64>,
pub expires_at: Option<i64>,
pub finalizing_at: Option<i64>,
pub completed_at: Option<i64>,
pub failed_at: Option<i64>,
pub expired_at: Option<i64>,
pub cancelling_at: Option<i64>,
pub cancelled_at: Option<i64>,
pub request_counts: Option<Batch_RequestCounts>,
pub metadata: Option<Metadata>,
}
Fields§
§id: String
§object: String
The object type, which is always batch
.
endpoint: String
The OpenAI API endpoint used by the batch.
errors: Option<Batch_Errors>
§input_file_id: String
The ID of the input file for the batch.
completion_window: String
The time frame within which the batch should be processed.
status: String
The current status of the batch.
output_file_id: Option<String>
The ID of the file containing the outputs of successfully executed requests.
error_file_id: Option<String>
The ID of the file containing the outputs of requests with errors.
created_at: i64
The Unix timestamp (in seconds) for when the batch was created.
in_progress_at: Option<i64>
The Unix timestamp (in seconds) for when the batch started processing.
expires_at: Option<i64>
The Unix timestamp (in seconds) for when the batch will expire.
finalizing_at: Option<i64>
The Unix timestamp (in seconds) for when the batch started finalizing.
completed_at: Option<i64>
The Unix timestamp (in seconds) for when the batch was completed.
failed_at: Option<i64>
The Unix timestamp (in seconds) for when the batch failed.
expired_at: Option<i64>
The Unix timestamp (in seconds) for when the batch expired.
cancelling_at: Option<i64>
The Unix timestamp (in seconds) for when the batch started cancelling.
cancelled_at: Option<i64>
The Unix timestamp (in seconds) for when the batch was cancelled.
request_counts: Option<Batch_RequestCounts>
§metadata: Option<Metadata>