retrieve_model {openai}R Documentation

Retrieve model

Description

Retrieves a model instance, providing basic information about the model such as the owner and permissioning. See this page for details.

Usage

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

Arguments

model

required; a length one character vector.

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, elements of which contain information about the model.

See Also

Other model functions: list_models()

Examples

## Not run: 
retrieve_model("text-davinci-002")

## End(Not run)

[Package openai version 0.4.1 Index]