Significant-Gravitas / AutoGPT

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
https://agpt.co
MIT License
166.1k stars 43.97k forks source link

I have problem with my main.py file #1355

Closed AbdelkarimDouadjia closed 1 year ago

AbdelkarimDouadjia commented 1 year ago

Duplicates

Steps to reproduce 🕹

Warning: The file 'auto-gpt.json' does not exist. Local memory would not be saved to a file. Using memory of type: LocalCache Traceback (most recent call last): File "F:\AutoGPT\Auto-GPT\scripts\main.py", line 441, in main() File "F:\AutoGPT\Auto-GPT\scripts\main.py", line 304, in main agent.start_interaction_loop() File "F:\AutoGPT\Auto-GPT\scripts\main.py", line 345, in start_interaction_loop assistant_reply = chat.chat_with_ai( File "F:\AutoGPT\Auto-GPT\scripts\chat.py", line 126, in chat_with_ai assistant_reply = create_chat_completion( File "F:\AutoGPT\Auto-GPT\scripts\llm_utils.py", line 50, in create_chat_completion raise RuntimeError("Failed to get response after 5 retries") RuntimeError: Failed to get response after 5 retries

Current behavior 😯

No response

Expected behavior 🤔

No response

Your prompt 📝

# Paste your prompt here
esitharth commented 1 year ago

facing the same issue

sadmuphin commented 1 year ago

Does the occur every time you execute py scripts/main.py?

mgoodman195 commented 1 year ago

im getting it every time I execute py scripts/main.py --- seems like a code error somewhere in the new update

sadmuphin commented 1 year ago

You might be getting rate limited? Or have bad internet connection?

I'll look into it.

AbdelkarimDouadjia commented 1 year ago

no the internet connection is good,So i think the problem is on the new update

codewithhart commented 1 year ago

I am seeing exactly the same thing.

Qoyyuum commented 1 year ago

If you run python -m autogpt --debug what does it show you @AbdelkarimDouadjia ?

XUHuAIRuOGU0231 commented 1 year ago

I also have this problem, which cannot be avoided after trying many times

sadmuphin commented 1 year ago

To everyone here try running python -m autogpt --debug (or python main/scripts --debug).

However the issue is that you most likely have not set up a paid OpenAI API account.

Here's OAI's API Pricing: https://openai.com/pricing Here's where you can setup billing for your account: https://platform.openai.com/account/billing/overview

AbdelkarimDouadjia commented 1 year ago

Yes, The problem is that I don't set up a paid OpenAI API account.