upload_file: Upload File

View source: R/functions.R

upload_fileR Documentation

Upload File

Description

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.

Usage

upload_file(file, purpose, return_response = F)

Arguments

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).

See Also

Open AI Documentation


samterfa/openai documentation built on Oct. 9, 2024, 5:18 p.m.