Optionalmetadata?: Record<string, string | number>Metadata to attach to the file.
Optionalmultimodal?: booleanEnable image extraction when processing the file.
Optionalfile?: neverUnavailable when using the alternative file input.
OptionalfileName?: neverUnavailable when using the alternative file input.
The local path to the file to upload. The file is read asynchronously.
Requires a Node.js runtime; use file on Edge or Workers runtimes.
The file data to upload. Accepts a Buffer, Blob, or Node.js
ReadableStream. Provide fileName for all file inputs.
The filename shown for the uploaded file, such as returns-policy.pdf.
Required when using file.
Optionalpath?: neverUnavailable when using the alternative file input.
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.