list()
Returns a list of files that belong to the user’s organization. Official OpenAI Docs
example.ts
create()
Upload a file that can be used across various endpoints/features. The size of all the files uploaded by one organization can be up to 100 GB.
The size of individual files for can be a maximum of 512MB
. See the Assistants Tools guide to learn more about the types of files supported. The Fine-tuning API only supports .jsonl
files.
Official OpenAI Docs
example.ts
createAndWaitForProcessing()
Upload a file and will return when the file is processed by polling in the background using io.backgroundPoll().
example.ts
waitForProcessing()
Will return when the file is processed by polling in the background using io.backgroundPoll().
example.ts
retrieve()
Returns information about a specific file. Official OpenAI Docs
example.ts