models_list_request {oaii} | R Documentation |
API models: list request
Description
Lists the currently available models, and provides basic information about each one such as the owner and availability. To get more details, visit: https://platform.openai.com/docs/models https://platform.openai.com/docs/api-reference/models/list
Usage
models_list_request(api_key = api_get_key())
Arguments
api_key |
string, OpenAI API key (see https://platform.openai.com/account/api-keys) |
Value
content of the httr response object or SimpleError (conditions) enhanced with two additional fields: 'status_code' (response$status_code) and 'message_long' (built on response content)
Examples
## Not run:
res_content <- models_list_request()
if (!is_error(res_content)) {
models_list_df <- models_fetch_list(res_content)
print(models_list_df)
}
## End(Not run)
[Package oaii version 0.5.0 Index]