View source: R/gpt_get_completions.R
gpt_get_completions | R Documentation |
Get GPT Completions Endpoint
gpt_get_completions(
prompt,
openai_api_key = Sys.getenv("OPENAI_API_KEY"),
messages = NULL
)
prompt |
The prompt to generate completions for. |
openai_api_key |
OpenAI's API key. |
messages |
Available variable, to send the needed messages list to ChatGPT. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.