powered by
Store the OpenAI API key as environment variable
api_set_key(api_key)
API key string (`api_key`)
string, OpenAI API key (see https://platform.openai.com/account/api-keys)
api_get_key
if (FALSE) { api_set_key("my-secret-api-key-string") }
Run the code above in your browser using DataLab