Learn R Programming

askgpt (version 0.1.3)

list_models: List Models

Description

List the models available in the API. You can refer to the [Models documentation](https://platform.openai.com/docs/models) to understand what models are available and the differences between them.

Usage

list_models(api_key = NULL)

Value

A tibble with available models

Arguments

api_key

set the API key. If NULL, looks for the env OPENAI_API_KEY.

Examples

Run this code
if (FALSE) {
completions_api("The quick brown fox")
}

Run the code above in your browser using DataLab