Joao208 / alexa-chatgpt

This is an Alexa bot developed with the help of OpenAI's ChatGPT language model. With it, you can converse naturally with Alexa, answering questions and performing tasks based on its language training.
http://bit.ly/3wUKdIz
190 stars 48 forks source link

Video explicativo #3

Open linikerunk opened 1 year ago

linikerunk commented 1 year ago

Olá boa noite, tentei criar uma skill da Alexa com a api do chatGPT passando o .env no arquivo, porém não entendi como vc fez para realizar a implementação, será que um video rápido não seria viável?

Chukyl1979 commented 1 year ago

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!

seksham commented 1 year ago

You can run export OPENAI_API_KEY="" in your terminal. Or add this in your bash rc file located in - ~/.bashrc

farithjhg commented 1 year ago

Step by step is needed after you run ask init. I guess the logic of the skill is on the index.js, but how to connect the skill configuration with this implementation is needed.