Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeError: Failed to get response after 5 retries #1262

Closed
1 task done
DevanandhS opened this issue Apr 14, 2023 · 17 comments
Closed
1 task done

RuntimeError: Failed to get response after 5 retries #1262

DevanandhS opened this issue Apr 14, 2023 · 17 comments

Comments

@DevanandhS
Copy link

Duplicates

  • I have searched the existing issues

Steps to reproduce 🕹

python scripts/main.py --continuous

Current behavior 😯

No response

Expected behavior 🤔

No response

Your prompt 📝

python scripts/main.py --continuous
Continuous Mode: ENABLED
WARNING: Continuous mode is not recommended. It is potentially dangerous and may cause your AI to run forever or carry out actions you would not usually authorise. Use at your own risk.
Welcome back! Would you like me to return to being mega gpt?
Continue with the last settings?
Name: mega gpt
Role: surfing web for latest news in python programming, technology and ai.
Goals: ['surf the web for information on latest python programming articles and ai.', 'analyse the trends', 'give suggestive topics in which the articles can be written']
Continue (y/n): y
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 "E:\AutoGPT\Auto-GPT\scripts\main.py", line 461, in
main()
File "E:\AutoGPT\Auto-GPT\scripts\main.py", line 365, in main
assistant_reply = chat.chat_with_ai(
File "E:\AutoGPT\Auto-GPT\scripts\chat.py", line 126, in chat_with_ai
assistant_reply = create_chat_completion(
File "E:\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

@karunakarhv
Copy link

Even am facing the similar issue.
I have just added OPENAI_API_KEY, apart from this I have not configured anything in .env file

@babyfengfjx
Copy link

I have the same issue:
image

@qs-lll
Copy link

qs-lll commented Apr 14, 2023

I have the same issue:
image

@flodaniel
Copy link

flodaniel commented Apr 14, 2023

I have the same issue: image

this is unrelated. You can switch to redis storage or just ignore this for now.
The error looks like it fails to communicate with chatgpt.
Running the command with --debug, shows too me that i am hitting rate limiting. so i guess waiting is the solution :)

Edit: I just added my credit card to my OpenAPI key and still hit the rate limiting. So maybe something is buggy right now.

@zlss
Copy link

zlss commented Apr 14, 2023

image
image

Now everyone is facing the same problem, how to solve it

@sumedh1996
Copy link

Same Issue, any fixes?
Screenshot 2023-04-14 at 2 06 33 PM

@Aruen24
Copy link

Aruen24 commented Apr 14, 2023

The openai-api key problem?

@sumedh1996
Copy link

Fix:

  1. The file 'auto-gpt.json' doesnot exist: Add a file in root with name auto-gpt.json and initialize it with {}
  2. For RunTime Error: Add Payment to your chat GPT account, even if you have ChatGpt Plus you need to add payment

@Aruen24
Copy link

Aruen24 commented Apr 14, 2023

@sumedh1996
https://platform.openai.com/account/billing/overview
Enter Set up paid account

@Ychangq
Copy link

Ychangq commented Apr 14, 2023

https://platform.openai.com/account/billing/overview 输入设置付费帐户

Can't I use it without a paying account? Is there any other way

@JuroOravec
Copy link
Contributor

Duplicate of #1189. @DevanandhS would you close this one issue if it indeed is the same thing?

(I had this issue too - It's that haven't opted into "paid account" on OpenAI's billing page. The auto-gpt.json is a red herring - it's a last messag we see, but it's unrelated to the API limit reached, the script can work without the auto-gpt.json)

I'm making an MR as we speak to update the README section on OpenAI's API key, to make this clear.

@ehatesham
Copy link

@sumedh1996 https://platform.openai.com/account/billing/overview Enter Set up paid account

Thanks ... upgrading to paid works for me

@hclivess
Copy link

hclivess commented Apr 15, 2023

This is a python error resulting from incorrect implementation of data ( replace() ) manipulation methods on particular data structures (json)
noob code needs fixing

@nuchito22
Copy link

Este es un error de Python resultante de la implementación incorrecta de métodos de manipulación de datos ( replace() ) en estructuras de datos particulares (json) El código noob necesita corregirse

Perfect, you mentioned that the code needs to be modified. Do you have any ideas on which file needs to be modified and what code needs to be added? Thank you.

@ahmedIdres
Copy link

so someone found how to solve it without a paid account ?

@0xVelo
Copy link

0xVelo commented Apr 16, 2023

I have a paid API account but still having the error, someone can help?

@d-yoshioka093
Copy link

I also have a paid API account but get the same error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests