Package com.openai.models
Class UploadCreateParams.Body
-
- All Implemented Interfaces:
public final class UploadCreateParams.Body
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
UploadCreateParams.Body.Builder
A builder for Body.
-
Method Summary
Modifier and Type Method Description final Long
bytes()
The number of bytes in the file you are uploading. final String
filename()
The name of the file to upload. final String
mimeType()
The MIME type of the file. final FilePurpose
purpose()
The intended purpose of the uploaded file. final JsonField<Long>
_bytes()
The number of bytes in the file you are uploading. final JsonField<String>
_filename()
The name of the file to upload. final JsonField<String>
_mimeType()
The MIME type of the file. final JsonField<FilePurpose>
_purpose()
The intended purpose of the uploaded file. final Map<String, JsonValue>
_additionalProperties()
final UploadCreateParams.Body
validate()
final UploadCreateParams.Body.Builder
toBuilder()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static UploadCreateParams.Body.Builder
builder()
-
-
Method Detail
-
mimeType
final String mimeType()
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
final FilePurpose purpose()
The intended purpose of the uploaded file.
See the documentation on File purposes.
-
_mimeType
final JsonField<String> _mimeType()
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
final JsonField<FilePurpose> _purpose()
The intended purpose of the uploaded file.
See the documentation on File purposes.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
validate
final UploadCreateParams.Body validate()
-
toBuilder
final UploadCreateParams.Body.Builder toBuilder()
-
builder
final static UploadCreateParams.Body.Builder builder()
-
-
-
-