Package com.openai.models
Class FileCreateParams.Body
-
- All Implemented Interfaces:
public final class FileCreateParams.Body
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classFileCreateParams.Body.BuilderA builder for Body.
-
Method Summary
Modifier and Type Method Description final ByteArrayfile()The File object (not file name) to be uploaded. final FilePurposepurpose()The intended purpose of the uploaded file. final MultipartField<ByteArray>_file()The File object (not file name) to be uploaded. final MultipartField<FilePurpose>_purpose()The intended purpose of the uploaded file. final FileCreateParams.Bodyvalidate()final FileCreateParams.Body.BuildertoBuilder()Booleanequals(Object other)IntegerhashCode()StringtoString()final static FileCreateParams.Body.Builderbuilder()Returns a mutable builder for constructing an instance of Body. -
-
Method Detail
-
purpose
final FilePurpose purpose()
The intended purpose of the uploaded file.
Use "assistants" for Assistants and Message files, "vision" for Assistants image file inputs, "batch" for Batch API, and "fine-tune" for Fine-tuning.
-
_file
final MultipartField<ByteArray> _file()
The File object (not file name) to be uploaded.
-
_purpose
final MultipartField<FilePurpose> _purpose()
The intended purpose of the uploaded file.
Use "assistants" for Assistants and Message files, "vision" for Assistants image file inputs, "batch" for Batch API, and "fine-tune" for Fine-tuning.
-
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()
-
-
-
-