File Handler
Represents the handler for the files endpoint. This class holds all the actions that can be performed on a file.
Inheritors
Functions
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.
Lists the 20 most recent files.
Lists files with the given query parameters.
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.
Retrieves the content of the given file.
Retrieves the content of the file with the given id.
Uploads the given file. Returns the data associated with the file, including the id (the id is useful for fine-tuning and assistants).