Closed Streete closed 1 year ago
Hi @Streete please set up your Open AI Key into your .env file and try again.
I have the same problem. I already changed the .env data several times and it still gives the same error
This was why i started reinstalling everything. I fixed it by using my old env file that i had a backup of and it worked for a while. Makes me think its something with the env file, make sure its env file and not template
but now nothing works after i tried reinstalling with cloning the repo with git
Did you rename your .env file from .env.template = .env?
yes!
and inside the .env, it's exactly like that with the keys:
PINECODE_API_KEY=(NUMBER KEY) PINECODE_ENV=(NUMBER KEY) OPENAI_API_KEY=(NUMBER KEY) ELEVEN_LABS_API_KEY=(NUMBER KEY) ELEVENLABS_VOICE_1_ID=(NUMBER KEY)
You should take a screenshot of how you currently have it setup in the file (maybe blur the actually key)
Hi @Streete please set up your Open AI Key into your .env file and try again.
Hi @Qoyyuum, I have tried this about 4 times during the day. Even to the point of generating new API keys and using those instead. Still have the same problem. Also, I have deleted and re-installed the auto-gpt program and still facing the same issue.
Hi @xx255q
This is the section where I posted my open API Key
The rest I have left untouched.
Did you rename your .env file from .env.template = .env?
Hi @D-ignite Yes, I renamed the file to remove the template part.
Hi @Streete
.env
files's OPENAI_API_KEY
.these are my mistakes
these are my mistakes
Your file is still a .env.template
. Please do the following in your terminal
cp .env.template .env
This will copy and paste the .env.template
file into .env
file properly.
Thank you bro ! Solved
For me it does not work with cp. I get the following message. What am I doing wrong?
@Qoyyuum
Thank you for your input, it seems I had the same trouble as @CAIOHSR and that I hadnt renamed the file correctly.
@Elcrypto87 If you are using cmd use 'copy' comand instead of 'cp', in powershell use 'cp' or 'copy' it takes both commands
I used 'ren .env.template .env' which seem to work for my windows CMD portal
Yeah, ren or rename will do the trick. 😉 Best of luck with your project
For anyone else facing this issue: please use one of the run
scripts:
./run.sh
on Linux and MacOSrun.bat
on Windows
Duplicates
Steps to reproduce 🕹
Installed the 'stable' version of the program I run 'python -m autogpt' command and comes up with an error.
I have paid Chat GPT and Open AI API accounts. For Chat GPT I have access to version 4 For Open AI API I do not have access to version 4, I am on the version before this.
Current behavior 😯
Error message ;Please set your OpenAI API key in .env or as an environment variable. You can get your key from https://beta.openai.com/account/api-keys'
Expected behavior 🤔
Should load the program as to start commands
Your prompt 📝