upload_file | R Documentation |
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.
upload_file(file, purpose, return_response = F)
file |
(string) The File object (not file name) to be uploaded. Required |
purpose |
(string) The intended purpose of the uploaded file. Use "fine-tune" for Fine-tuning and "assistants" for Assistants and Messages. This allows us to validate the format of the uploaded file is correct for fine-tuning. Required |
return_response |
(boolean) Whether to return the API response or parse the contents of the response. Defaults to FALSE (parse the response). |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.