Interface UploadFileOptions

Options for uploading a file to an assistant.

interface UploadFileOptions {
    metadata?: Record<string, string | number>;
    multimodal?: boolean;
    path: string;
}

Properties

metadata?: Record<string, string | number>

Metadata to attach to the file.

multimodal?: boolean

Whether to process the file as multimodal (enabling image extraction). Defaults to false.

path: string

The (local) path to the file to upload.