jas3333 / GPT-Helper

MIT License
140 stars 37 forks source link

Help using this... #1

Closed TechPunk316 closed 1 year ago

TechPunk316 commented 1 year ago

Hey this is a greate project! I set this up and it runs but I can't seem to ask any questions? I'm using Firefox - am I doing something wrong? When I press enter after asking a question nothing happens...Any help appreciated

Screenshot 2022-12-08 at 14 38 47

jas3333 commented 1 year ago

Did you create a .env file in the client directory with your API key in it? Inside the file you will want to have a variable like REACT_APP_OPENAI_KEY=theapikey

TechPunk316 commented 1 year ago

Thanks for getting back to me. Yup I called it OpenAIkey.env. Should that be ok?

jas3333 commented 1 year ago

Can you try renaming it to just .env? Since it is using react, I believe it will be looking for just .env in the client directory. And the variable inside will have to be REACT_APP_OPENAI_KEY=whateveryourkeyis because in the code it is using process.env.REACT_APP_OPENAI_KEY

TechPunk316 commented 1 year ago

Thanks so much - that worked!