upload

open override fun upload(request: UploadFileRequest): FileObject

Uploads the given file. Returns the data associated with the file, including the id (the id is useful for fine-tuning and assistants).

By default, an organization can have up to 100gb of files. If you need more space, you can contact OpenAI support. Individual files can be up to 512mb in size.

Return

The uploaded file

Parameters

request

The request to upload the file