OpenAI::Upload
Inherits JSON::Serializable < Reference < Object
The Upload object can accept byte chunks in the form of Parts.
Constructors
new(pull : JSON::PullParser)
Sourcenew(id : String = "", created_at : Int64 = 0, filename : String = "", bytes : Int64 = 0, purpose : String = "", status : UploadStatus = UploadStatus::Pending, expires_at : Int64 = 0, object : UploadObject = UploadObject::Upload, file : UploadFile | Nil = nil)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
created_at=(created_at : Int64)
The Unix timestamp (in seconds) for when the Upload was created.
expires_at=(expires_at : Int64)
The Unix timestamp (in seconds) for when the Upload will expire.
file
Sourcefile=(file : UploadFile | Nil)
Sourcepurpose=(purpose : String)
The intended purpose of the file. Please refer here for acceptable values.