Skip to content

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.

file instance-attribute

file: Required[FileTypes]

The File object (not file name) to be uploaded.

purpose instance-attribute

purpose: Required[Literal['fine-tune', 'assistants']]

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.