The File object represents a document that has been uploaded to OpenAI.
Constructors
new(id :
String = "", bytes :
Int64 = 0, created_at :
Int64 = 0, expires_at :
Int64 |
Nil = nil, filename :
String = "", object :
OpenAIFileObject =
OpenAIFileObject::File, purpose :
OpenAIFilePurpose =
OpenAIFilePurpose::Assistants, status :
OpenAIFileStatus =
OpenAIFileStatus::Uploaded, status_details :
String |
Nil = nil)
SourceInstance methods
bytes
The size of the file, in bytes.
SourceThe size of the file, in bytes.
Sourcecreated_at
The Unix timestamp (in seconds) for when the file was created.
Sourcecreated_at=(created_at :
Int64)
The Unix timestamp (in seconds) for when the file was created.
Sourceexpires_at
The Unix timestamp (in seconds) for when the file will expire.
Sourceexpires_at=(expires_at :
Int64 |
Nil)
The Unix timestamp (in seconds) for when the file will expire.
Sourceid
The file identifier, which can be referenced in the API endpoints.
SourceThe file identifier, which can be referenced in the API endpoints.
Sourceobject
The object type, which is always file.
Sourceobject=(object : OpenAIFileObject)
The object type, which is always file.
Sourcepurpose
The intended purpose of the file. Supported values are assistants, assistants_output, batch, batch_output, fine-tune, fine-tune-results, vision, and user_data.
Sourcepurpose=(purpose : OpenAIFilePurpose)
The intended purpose of the file. Supported values are assistants, assistants_output, batch, batch_output, fine-tune, fine-tune-results, vision, and user_data.
Sourcestatus
Deprecated. The current status of the file, which can be either uploaded, processed, or error.
Sourcestatus=(status : OpenAIFileStatus)
Deprecated. The current status of the file, which can be either uploaded, processed, or error.
Sourcestatus_details
Deprecated. For details on why a fine-tuning training file failed validation, see the error field on fine_tuning.job.
Sourcestatus_details=(status_details :
String |
Nil)
Deprecated. For details on why a fine-tuning training file failed validation, see the error field on fine_tuning.job.
Source