Closed jfranecki closed 1 year ago
Please verify you are editing the correct .env file. If you have "Hide extensions for known file types" the file might be .env.txt but you wont be able to see the .txt at the end.
Yes, the file I provided was from the .env file and it has a file type of 'ENV File'.
I found on the stable
branch that autogpt will try reading .env
from path/to/local/Auto-GPT/autogpt/.env
. I symlinked this file to ../.env
as a work around.
Strange, the only thing I can suggest is to start from scratch, or try to debug load_dotenv() in autogpt/config/config.py in particular the find_dotenv function result.
Just ran into this. I removed the double quotes from my key and it worked just fine.
ran into this issue just hard coded the api key in to config.py fixed the issue
self.openai_api_key = "your open ai api key here " # os.getenv("OPENAI_API_KEY")
ran into this issue just hard coded the api key in to config.py fixed the issue
enter your openai api key and comment out the original code as below
self.openai_api_key = "your open ai api key here " # os.getenv("OPENAI_API_KEY")
That worked, thank you.
I just resolved this issue as well, the problem was while the file was named ".env" the file type was still "Template", vs "env file". Renaming the file updated the file type.
I just resolved this issue as well, the problem was while the file was named ".env" the file type was still "Template", vs "env file". Renaming the file updated the file type.
It works. Thanks
For me there was an empty file .env in the autogpt subfolder. Maybe from prior experiments with docker or devcontainer which was completely empty. After deleting that, it worked
I had the same issue -- challenge is computer saves the .env file as a .txt. Easy fix -- make your changes in env.template -- duplicate the file in the folder and then rename as .env This should fix it (worked for me)
Hi,
ran into this issue just hard coded the api key in to config.py fixed the issue
enter your openai api key and comment out the original code as below
self.openai_api_key = "your open ai api key here " # os.getenv("OPENAI_API_KEY")
I'd love some help with this if anyone is willing to walk me through. I'm having the same issue.
⚠️ Search for existing issues first ⚠️
Which Operating System are you using?
Windows
GPT-3 or GPT-4?
GPT-3.5
Steps to reproduce 🕹
Using Stable branch. Tried master, did not work there either. I have installed requirements.txt and edited the .env file using the template.
Python version:
Python 3.10.11
git rev-parse HEAD:97d62cc16bf45fcd406efeb33d042ebd58c24670
I have have modified a few values in .env
AutoGPT Directory Picture:
Current behavior 😯
Command Ran in Windows Terminal
Auto-GPT>python -m autogpt --gpt3only
Response:
The command
python -m autogpt
returns the same response.Expected behavior 🤔
No response
Your prompt 📝
No response
Your Logs 📒
No response