View source: R/openai_api_key.R
openai_api_key | R Documentation |
This function sets the OpenAI API key as an environment variable in the current R session. It takes the API key as an input and stores it as an environment variable, allowing other functions to access the key when needed.
openai_api_key(api_key)
api_key |
A character string containing the OpenAI API key. |
Nothing is returned; the function is called for its side effects.
Ulrich Matter umatter@protonmail.com
https://platform.openai.com/docs/ for more information on the OpenAI API.
## Not run:
# Set the OpenAI API key for the current R session
openai_api_key("your_api_key_here")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.