View source: R/user-settings.R
set_openai_api_key | R Documentation |
NLP functionalities require a paid OpenAI API key to communicate with Open AI models.
set_openai_api_key(key, overwrite = FALSE, temporary = FALSE)
key |
an OpenAI API key. For more information on keys see the OpenAI API blog |
overwrite |
Option to overwrite any existing OpenAI keys already stored locally. |
temporary |
Option to not store thew API key for use across sessions. |
## Not run:
set_openai_api_key("YOUR_OPENAI_API_KEY")
# This will set the key permanently until overwritten again
set_openai_api_key("YOUR_OPENAI_API_KEY")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.