Learn R Programming

openai (version 0.4.1)

list_models: List models

Description

Lists the currently available models, and provides basic information about each one such as the owner and availability. See this page for details.

Usage

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

Value

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

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.

See Also

Other model functions: retrieve_model()

Examples

Run this code
if (FALSE) {
list_models()
}

Run the code above in your browser using DataLab