Learn R Programming

oaii (version 0.5.0)

files_list_request: 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())

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)

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)

Examples

Run this code
if (FALSE) {
res_content <- files_list_request()
if (!is_error(res_content)) {
  files_list_df <- files_fetch_list(res_content)
  print(files_list_df)
}
}

Run the code above in your browser using DataLab