Learn R Programming

oaii (version 0.5.0)

api_set_key: Store the OpenAI API key as environment variable

Description

Store the OpenAI API key as environment variable

Usage

api_set_key(api_key)

Value

API key string (`api_key`)

Arguments

api_key

string, OpenAI API key (see https://platform.openai.com/account/api-keys)

See Also

api_get_key

Examples

Run this code
if (FALSE) {
api_set_key("my-secret-api-key-string")
}

Run the code above in your browser using DataLab