Class FileCreateParams.Body
-
- All Implemented Interfaces:
public final class FileCreateParams.Body
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
FileCreateParams.Body.Builder
A builder for Body.
-
Method Summary
Modifier and Type Method Description final InputStream
file()
The File object (not file name) to be uploaded. final FilePurpose
purpose()
The intended purpose of the uploaded file. final MultipartField<InputStream>
_file()
The File object (not file name) to be uploaded. final MultipartField<FilePurpose>
_purpose()
The intended purpose of the uploaded file. final FileCreateParams.Body
validate()
final FileCreateParams.Body.Builder
toBuilder()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static FileCreateParams.Body.Builder
builder()
Returns a mutable builder for constructing an instance of Body. -
-
Method Detail
-
file
final InputStream file()
The File object (not file name) to be uploaded.
-
purpose
final FilePurpose purpose()
The intended purpose of the uploaded file. One of: -
assistants
: Used in the Assistants API -batch
: Used in the Batch API -fine-tune
: Used for fine-tuning -vision
: Images used for vision fine-tuning -user_data
: Flexible file type for any purpose -evals
: Used for eval data sets
-
_file
final MultipartField<InputStream> _file()
The File object (not file name) to be uploaded.
-
_purpose
final MultipartField<FilePurpose> _purpose()
The intended purpose of the uploaded file. One of: -
assistants
: Used in the Assistants API -batch
: Used in the Batch API -fine-tune
: Used for fine-tuning -vision
: Images used for vision fine-tuning -user_data
: Flexible file type for any purpose -evals
: Used for eval data sets
-
validate
final FileCreateParams.Body validate()
-
toBuilder
final FileCreateParams.Body.Builder toBuilder()
-
builder
final static FileCreateParams.Body.Builder builder()
Returns a mutable builder for constructing an instance of Body.
The following fields are required:
.file() .purpose()
-
-
-
-