Creates an instance of Files.
The BatchInference client instance.
The BatchInference client instance.
Download file content to local filesystem.
Downloads the content of a file and saves it to the local filesystem. The file must be in JSONL format.
The parameters to send to the service.
A promise that resolves to a success message with the file path
If the file already exists or if the filename doesn't end with .jsonl
Private fileRetrieve file content.
Retrieves the content of a specific file by its ID.
The parameters to send to the service.
A promise that resolves to the response with file content
Retrieve file details or list all files.
When called with fileId, retrieves details of a specific file. When called without fileId,
retrieves a list of all files.
The parameters to send to the service.
A promise that resolves to either a single file or a collection of files
List all files.
Retrieves a list of all files for the specified space or project.
The parameters to send to the service.
A promise that resolves to an array of files
Upload a file for batch inference.
Uploads a JSONL file containing batch requests. The file will be used as input for batch inference jobs.
The parameters to send to the service.
A promise that resolves to the response with uploaded file data
Class for managing files used in batch inference operations.
Provides methods to upload, retrieve, list, download, and manage files associated with batch inference jobs.