OpenAI::CreateUploadRequest
Inherits JSON::Serializable < Reference < Object
Constructors
new(pull : JSON::PullParser)
Sourcenew(filename : String = "", purpose : CreateUploadRequestPurpose = CreateUploadRequestPurpose::Assistants, bytes : Int64 = 0, mime_type : String = "", expires_after : FileExpirationAfter | Nil = nil)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
expires_after
Sourceexpires_after=(expires_after : FileExpirationAfter | Nil)
Sourcemime_type
The MIME type of the file.
This must fall within the supported MIME types for your file purpose. See the supported MIME types for assistants and vision.
mime_type=(mime_type : String)
The MIME type of the file.
This must fall within the supported MIME types for your file purpose. See the supported MIME types for assistants and vision.
purpose=(purpose : CreateUploadRequestPurpose)
The intended purpose of the uploaded file.
See the documentation on File purposes.