Client for the OpenAI Files API. Upload, list, retrieve, and delete files
that can be used with fine-tuning, assistants, batch processing, and more.
Access via client$files.
$create(file, purpose)Upload a file
$list(...)List uploaded files, optionally filter by purpose
$retrieve(file_id)Get metadata for a specific file
$delete(file_id)Delete a file
$content(file_id)Download the raw content of a file
$wait_for_processing(file_id, ...)Poll until a file is processed
new()FilesClient$new(parent)
create()FilesClient$create(file, purpose)
list()FilesClient$list(purpose = NULL, limit = NULL, after = NULL, order = NULL)
retrieve()FilesClient$retrieve(file_id)
delete()FilesClient$delete(file_id)
content()FilesClient$content(file_id)
wait_for_processing()FilesClient$wait_for_processing(file_id, timeout = 300, poll_interval = 5)
clone()The objects of this class are cloneable with this method.
FilesClient$clone(deep = FALSE)deepWhether to make a deep clone.