interface FileCreateParams {
    file: Uploadable;
    purpose: FilePurpose;
}

Properties

Properties

file: Uploadable

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

purpose: FilePurpose

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.