set_key {air}R Documentation

Securely stores your your OpenAI API key to your OS keyring.

Description

Securely stores your your OpenAI API key to your OS keyring.

Usage

set_key(key = NULL)

Arguments

key

Optional string of your OpenAI API key; if not provided, a popup will ask you to enter it (safer).

Value

No return value; only side-effect and message printed to console

Examples

# CAREFUL: Changes your OpenAI API key in your OS keyring
## Not run: 
set_key("sk-my-api-key") # sets the key directly (will show in .Rhistory)
set_key()                # opens a system popup for secure entry

## End(Not run)


[Package air version 0.2.2 Index]