Hi I wanted to have Chat chpt in my alexa Skill. I copyed the files with the codes. I dónt know where to put my key from Open AI. Is it in the index. Here ? headers: {
ernestowcfg opened this issue · 1 comments
ernestowcfg commented
Hi I wanted to have Chat chpt in my alexa Skill. I copyed the files with the codes. I dónt know where to put my key from Open AI. Is it in the index. Here ? headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${process.env.OPENAI_API_KEY}}`, . Where exactly? Thank you!
Originally posted by @Chukyl1979 in #3 (comment)
To correctly index the API key, you must ensure that you correctly replace the value of 'process.env.OPENAI_API_KEY' with your own OpenAI API key
utsavdotpro commented
Hey @ernestowcfg, create a file named .env
in your root and save it as follows:
OPENAI_API_KEY=your_api_key_here