interface FileCreateParams {
    file: Uploadable;
    purpose:
        | "batch"
        | "vision"
        | "assistants"
        | "fine-tune";
}

Properties

Properties

file: Uploadable

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

purpose:
    | "batch"
    | "vision"
    | "assistants"
    | "fine-tune"

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.