files_list_request {oaii} | R Documentation |
API files: get list request
Description
Returns a list of files that belong to the user's organization. To get more details, visit: https://platform.openai.com/docs/api-reference/files/list
Usage
files_list_request(purpose = NULL, api_key = api_get_key())
Arguments
purpose |
NULL/string, only return files with the given purpose |
api_key |
string, OpenAI API key (see https://platform.openai.com/account/api-keys) |
Value
content of the httr response object or SimpleError (conditions) enhanced with two additional fields: 'status_code' (response$status_code) and 'message_long' (built on response content)
Examples
## Not run:
res_content <- files_list_request()
if (!is_error(res_content)) {
files_list_df <- files_fetch_list(res_content)
print(files_list_df)
}
## End(Not run)
[Package oaii version 0.5.0 Index]