Optionalmetadata?: Record<string, string | number>Metadata to attach to the file.
Optionalmultimodal?: booleanWhether to process the file as multimodal (enabling image extraction). Defaults to false.
Optionalfile?: neverOptionalfileName?: neverThe local path to the file to upload. The file is read asynchronously.
The file data to upload. Accepts a Buffer, Blob, or Node.js
ReadableStream. When passing a stream, fileName is required so
the server receives a meaningful filename.
The filename to use in the multipart upload (e.g. "report.pdf").
Required when using file.
Optionalpath?: never
Options for uploading a file to an assistant.
Provide either
path(a local file path) orfile+fileName(an in-memory buffer, blob, or readable stream). The two forms are mutually exclusive.