list_files {openai}R Documentation

List files

Description

Lists files uploaded by user's organization. See this page for details.

Usage

list_files(
  openai_api_key = Sys.getenv("OPENAI_API_KEY"),
  openai_organization = NULL
)

Arguments

openai_api_key

required; defaults to Sys.getenv("OPENAI_API_KEY") (i.e., the value is retrieved from the .Renviron file); a length one character vector. Specifies OpenAI API key.

openai_organization

optional; defaults to NULL; a length one character vector. Specifies OpenAI organization.

Details

For arguments description please refer to the official documentation.

Value

Returns a list, an element of which is a data frame containing information about files.

See Also

Other file functions: delete_file(), retrieve_file_content(), retrieve_file(), upload_file()

Examples

## Not run: 
list_files()

## End(Not run)

[Package openai version 0.4.1 Index]