openai_api_key {TheOpenAIR} | R Documentation |
Set OpenAI API Key as an Environment Variable
Description
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.
Usage
openai_api_key(api_key)
Arguments
api_key |
A character string containing the OpenAI API key. |
Value
Nothing is returned; the function is called for its side effects.
Author(s)
Ulrich Matter umatter@protonmail.com
See Also
https://platform.openai.com/docs/ for more information on the OpenAI API.
Examples
## Not run:
# Set the OpenAI API key for the current R session
openai_api_key("your_api_key_here")
## End(Not run)
[Package TheOpenAIR version 0.1.0 Index]