R/query.R
oai_set_api_key.Rd
To use the OpenAI API, you need to have an API key. You can get one by signing up at OpenAI.
oai_set_api_key(api_key)
A character string with the OpenAI API key.
Alternatively, you can set the OPENAI_API_KEY environment variable, which is read at package load time.
OPENAI_API_KEY