list_engines: List engines

View source: R/list_engines.R

list_enginesR Documentation

List engines

Description

[Deprecated]

Note: This endpoint is deprecated and soon will be removed. Please use its replacement, Models, instead. The replacement function in this package is list_models().

Lists available engines and provides basic information about such engines. See this page for details.

Usage

list_engines(
  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 engines.

See Also

Other engine functions: retrieve_engine()

Examples

## Not run: 
list_engines()
# ->
list_models()

## End(Not run)

openai documentation built on March 31, 2023, 11:56 p.m.