File Handler Impl
Functions
Link copied to clipboard
Attempts to delete the given file. To confirm deletion, you should check FileDeletionStatus.deleted.
Attempts to delete the file with the given id. To confirm deletion, you should check FileDeletionStatus.deleted.
Link copied to clipboard
Lists the 20 most recent files.
Lists files with the given query parameters.
Link copied to clipboard
Retrieves the file associated with the given file. This method will return a new instance of the file, and will not modify the given instance.
Retrieve the file with the given id.
Link copied to clipboard
Retrieves the content of the given file.
Retrieves the content of the file with the given id.
Link copied to clipboard
Uploads the given file. Returns the data associated with the file, including the id (the id is useful for fine-tuning and assistants).