library(openai)
Sys.setenv(
OPENAI_API_KEY = ''
)
Sys.getenv("OPENAI_API_KEY")
create_completion(
model = "ada",
prompt = "Generate a question and an answer"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.