retrieve_engine {openai} | R Documentation |
Retrieve engine
Description
Note: This endpoint is deprecated and soon will be removed. Please use
its replacement,
Models, instead. The
replacement function in this package is retrieve_model()
.
Provides information about a specified engine. See this page for details.
Usage
retrieve_engine(
engine_id,
openai_api_key = Sys.getenv("OPENAI_API_KEY"),
openai_organization = NULL
)
Arguments
engine_id |
required; a length one character vector. |
openai_api_key |
required; defaults to |
openai_organization |
optional; defaults to |
Details
For arguments description please refer to the official documentation.
Value
Returns a list, elements of which contain information about the engine.
See Also
Other engine functions:
list_engines()
Examples
## Not run:
retrieve_engine("text-davinci-002")
# ->
retrieve_model("text-davinci-002")
## End(Not run)
[Package openai version 0.4.1 Index]