file_create_params
Classes:
Name | Description |
---|---|
FileCreateParams |
|
FileCreateParams
Attributes:
Name | Type | Description |
---|---|---|
file |
Required[FileTypes]
|
The File object (not file name) to be uploaded. |
purpose |
Required[Literal['fine-tune', 'assistants']]
|
The intended purpose of the uploaded file. |
purpose
instance-attribute
The intended purpose of the uploaded file.
Use "fine-tune" for Fine-tuning and "assistants" for Assistants and Messages. This allows us to validate the format of the uploaded file is correct for fine-tuning.