Skip to contents

Use the keyring package to store an API key.

Usage

oai_set_key(key_name = "OPENAI_API_KEY", keyring = NULL)

Arguments

key_name

The name of the key.

keyring

The name of a specific keyring, passed on to keyring::set_key if available.

Value

The key, invisibly.