Skip to contents

list_models

Usage

list_models(openai_api_key = Sys.getenv("OPENAI_API_KEY"))

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.

Value

a list of models available in the OpenAI API.