AutoGPT: AutoGPT v0.3.1 crashes immediately after task given
Which Operating System are you using?
Windows
Which version of Auto-GPT are you using?
Latest Release v0.3.1
GPT-3 or GPT-4?
GPT-3.5
Steps to reproduce 🕹
Welcome to Auto-GPT! run with ‘–help’ for more information. Create an AI-Assistant: input ‘–manual’ to enter manual mode. Asking user via keyboard… I want Auto-GPT to: Search Big Mac prices in EU countries Unable to automatically generate AI Config based on user desire. Falling back to manual mode. Create an AI-Assistant: Enter the name of your AI and its role below. Entering nothing will load defaults. Name your AI: For example, ‘Entrepreneur-GPT’ Asking user via keyboard… AI Name: MacGPT MacGPT here! I am at your service. Describe your AI’s role: For example, ‘an AI designed to autonomously develop and run businesses with the sole goal of increasing your net worth.’ Asking user via keyboard… MacGPT is: Search for Big Mc prices in EU countries Enter up to 5 goals for your AI: For example: Increase net worth, Grow Twitter Account, Develop and manage multiple businesses autonomously’ Enter nothing to load defaults, enter nothing when finished. Asking user via keyboard… Goal 1: Conduct a thorough and accurate search of BigMc prices across EU countries Asking user via keyboard… Goal 2: Provide price per each EU capital Asking user via keyboard… Goal 3: Ensure that the information provided is up-to-date and accurate Asking user via keyboard… Goal 4: Continuously improve the search algorithm to increase the accuracy and efficiency of the search process. Asking user via keyboard… Goal 5: Do not crash ang give error - “openai.error.AuthenticationError: <empty message>” Enter your budget for API calls: For example: $1.50 Enter nothing to let the AI run without monetary limit Asking user via keyboard… Budget: $1 MacGPT has been created with the following details: Name: MacGPT Role: Search for Big Mc prices in EU countries Goals:
- Conduct a thorough and accurate search of BigMc prices across EU countries
- Provide price per each EU capital
- Ensure that the information provided is up-to-date and accurate
- Continuously improve the search algorithm to increase the accuracy and efficiency of the search process.
- Do not crash ang give error - “openai.error.AuthenticationError: <empty message>” Using memory of type: LocalCache Using Browser: chrome Traceback (most recent call last): File “C:\Users\makkolev\AppData\Local\Programs\Python\Python310\lib\runpy.py”, line 196, in _run_module_as_main return _run_code(code, main_globals, None, File “C:\Users\user\AppData\Local\Programs\Python\Python310\lib\runpy.py”, line 86, in run_code exec(code, run_globals) File "C:\agpt\autogpt_main.py", line 5, in <module> autogpt.cli.main() File “C:\agpt\autogpt_env\lib\site-packages\click\core.py”, line 1130, in call return self.main(*args, **kwargs) File “C:\agpt\autogpt_env\lib\site-packages\click\core.py”, line 1055, in main rv = self.invoke(ctx) File “C:\agpt\autogpt_env\lib\site-packages\click\core.py”, line 1635, in invoke rv = super().invoke(ctx) File “C:\agpt\autogpt_env\lib\site-packages\click\core.py”, line 1404, in invoke return ctx.invoke(self.callback, **ctx.params) File “C:\agpt\autogpt_env\lib\site-packages\click\core.py”, line 760, in invoke return __callback(*args, **kwargs) File “C:\agpt\autogpt_env\lib\site-packages\click\decorators.py”, line 26, in new_func return f(get_current_context(), *args, **kwargs) File “C:\agpt\autogpt\cli.py”, line 90, in main run_auto_gpt( File “C:\agpt\autogpt\main.py”, line 186, in run_auto_gpt agent.start_interaction_loop() File “C:\agpt\autogpt\agent\agent.py”, line 113, in start_interaction_loop assistant_reply = chat_with_ai( File “C:\agpt\autogpt\llm\chat.py”, line 244, in chat_with_ai assistant_reply = create_chat_completion( File “C:\agpt\autogpt\llm\llm_utils.py”, line 166, in create_chat_completion response = api_manager.create_chat_completion( File “C:\agpt\autogpt\llm\api_manager.py”, line 55, in create_chat_completion response = openai.ChatCompletion.create File “C:\agpt\autogpt_env\lib\site-packages\openai\api_resources\chat_completion.py”, line 25, in create return super().create(*args, **kwargs) File “C:\agpt\autogpt_env\lib\site-packages\openai\api_resources\abstract\engine_api_resource.py”, line 153, in create response, _, api_key = requestor.request( File “C:\agpt\autogpt_env\lib\site-packages\openai\api_requestor.py”, line 226, in request resp, got_stream = self._interpret_response(result, stream) File “C:\agpt\autogpt_env\lib\site-packages\openai\api_requestor.py”, line 619, in _interpret_response self._interpret_response_line( File “C:\agpt\autogpt_env\lib\site-packages\openai\api_requestor.py”, line 682, in _interpret_response_line raise self.handle_error_response( openai.error.AuthenticationError: <empty message>
Current behavior 😯
Crashes multiple times. Open_API_key has been provided. Restarted virtual environment a couple of times. NB! Tried to start AutoGPT both with Windows Python3.10 way and via Docker. In both cases can’t start start search and receive immediately error (below) - openai.error.AuthenticationError: <empty message>
Expected behavior 🤔
Starts correctly
Your prompt 📝
MacGPT here! I am at your service.
Describe your AI's role: For example, 'an AI designed to autonomously develop and run businesses with the sole goal of increasing your net worth.'
Asking user via keyboard...
MacGPT is: Search for Big Mc prices in EU countries
Enter up to 5 goals for your AI: For example: Increase net worth, Grow Twitter Account, Develop and manage multiple businesses autonomously'
Enter nothing to load defaults, enter nothing when finished.
Asking user via keyboard...
Goal 1: Conduct a thorough and accurate search of BigMc prices across EU countries
Asking user via keyboard...
Goal 2: Provide price per each EU capital
Asking user via keyboard...
Goal 3: Ensure that the information provided is up-to-date and accurate
Asking user via keyboard...
Goal 4: Continuously improve the search algorithm to increase the accuracy and efficiency of the search process.
Asking user via keyboard...
Goal 5: Do not crash ang give error - "openai.error.AuthenticationError: <empty message>"
Enter your budget for API calls: For example: $1.50
Enter nothing to let the AI run without monetary limit
Asking user via keyboard...
Budget: $1
MacGPT has been created with the following details:
Name: MacGPT
Role: Search for Big Mc prices in EU countries
Goals:
- Conduct a thorough and accurate search of BigMc prices across EU countries
- Provide price per each EU capital
- Ensure that the information provided is up-to-date and accurate
- Continuously improve the search algorithm to increase the accuracy and efficiency of the search process.
- Do not crash ang give error - "openai.error.AuthenticationError: <empty message>"
Using memory of type: LocalCache
Using Browser: chrome
Your Logs 📒
Traceback (most recent call last):
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\makkolev\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "C:\agpt\autogpt\__main__.py", line 5, in <module>
autogpt.cli.main()
File "C:\agpt\autogpt_env\lib\site-packages\click\core.py", line 1130, in __call__
return self.main(*args, **kwargs)
File "C:\agpt\autogpt_env\lib\site-packages\click\core.py", line 1055, in main
rv = self.invoke(ctx)
File "C:\agpt\autogpt_env\lib\site-packages\click\core.py", line 1635, in invoke
rv = super().invoke(ctx)
File "C:\agpt\autogpt_env\lib\site-packages\click\core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:\agpt\autogpt_env\lib\site-packages\click\core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "C:\agpt\autogpt_env\lib\site-packages\click\decorators.py", line 26, in new_func
return f(get_current_context(), *args, **kwargs)
File "C:\agpt\autogpt\cli.py", line 90, in main
run_auto_gpt(
File "C:\agpt\autogpt\main.py", line 186, in run_auto_gpt
agent.start_interaction_loop()
File "C:\agpt\autogpt\agent\agent.py", line 113, in start_interaction_loop
assistant_reply = chat_with_ai(
File "C:\agpt\autogpt\llm\chat.py", line 244, in chat_with_ai
assistant_reply = create_chat_completion(
File "C:\agpt\autogpt\llm\llm_utils.py", line 166, in create_chat_completion
response = api_manager.create_chat_completion(
File "C:\agpt\autogpt\llm\api_manager.py", line 55, in create_chat_completion
response = openai.ChatCompletion.create(
File "C:\agpt\autogpt_env\lib\site-packages\openai\api_resources\chat_completion.py", line 25, in create
return super().create(*args, **kwargs)
File "C:\agpt\autogpt_env\lib\site-packages\openai\api_resources\abstract\engine_api_resource.py", line 153, in create
response, _, api_key = requestor.request(
File "C:\agpt\autogpt_env\lib\site-packages\openai\api_requestor.py", line 226, in request
resp, got_stream = self._interpret_response(result, stream)
File "C:\agpt\autogpt_env\lib\site-packages\openai\api_requestor.py", line 619, in _interpret_response
self._interpret_response_line(
File "C:\agpt\autogpt_env\lib\site-packages\openai\api_requestor.py", line 682, in _interpret_response_line
raise self.handle_error_response(
openai.error.AuthenticationError: <empty message>
Press any key to continue . . .
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 15 (1 by maintainers)
Make sure your API key only has one set of “” quotation marks in .env before you save it. Then set everything up and try it again.
Was having a similar issue.
The default .env file had OPENAI_API_KEY twice. Line 43 (where I’d put the API) and line 56 (which was blank). I commented out line 56 and it is back working as intended.
Check and make sure there aren’t multiple uncommented OPENAI_API_KEY defined values.