jas3333 / GPT-Helper

MIT License
140 stars 37 forks source link

How do I input my API Token? #12

Closed TheExodus90 closed 1 year ago

TheExodus90 commented 1 year ago

Hi using Windows / Anaconda I've managed to install it but what Command do I use to input my API Code?

If I use REACT_APP_OPENAI_KEY=mykey I get an error

" is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again."

jas3333 commented 1 year ago

You need to create a file called .env in the client folder and place the variable in it.

TheExodus90 commented 1 year ago

Thanks, I managed to get it working using the following command

($env:REACT_APP_OPENAI_KEY = "mykey") -and (npm start)