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 #1203

Closed
rfinley327 opened this issue Apr 13, 2023 · 11 comments
Closed

RuntimeError: Failed to get response after 5 retries #1203

rfinley327 opened this issue Apr 13, 2023 · 11 comments

Comments

@rfinley327
Copy link

Receiving the below error any help would be greatly appreciated.

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 "C:\Users\finle\OneDrive\Desktop\AUTOGPT\Auto-GPT\scripts\main.py", line 461, in
main()
File "C:\Users\finle\OneDrive\Desktop\AUTOGPT\Auto-GPT\scripts\main.py", line 365, in main
assistant_reply = chat.chat_with_ai(
File "C:\Users\finle\OneDrive\Desktop\AUTOGPT\Auto-GPT\scripts\chat.py", line 126, in chat_with_ai
assistant_reply = create_chat_completion(
File "C:\Users\finle\OneDrive\Desktop\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

@dandaka
Copy link

dandaka commented Apr 13, 2023

You need a paid account in OpenAI, fixed for me

@BlueJ-D
Copy link

BlueJ-D commented Apr 13, 2023

This

this comment says to create auto json file first

@hardhands
Copy link

@dandaka did you sign up to chatgpt4 (plus) account also?

@BlueJ-D
Copy link

BlueJ-D commented Apr 13, 2023

@dandaka did you sign up to chatgpt4 (plus) account also?

I don't believe a plus account would help as thats for chat and this uses API playground. Could test if gpt4 was the issue using --gpt3only

@dandaka
Copy link

dandaka commented Apr 13, 2023

You need to create a paid account here https://platform.openai.com/account/billing/overview

I had ChatGPT plus, it does not help. Having paid API account solved the issue for me.

@MichaelZhang-Navex
Copy link

Thank you @dandaka it works for me too! Just upgraded to paid and created a new api key -- the old one created before upgrade didn't work some how.

@JuroOravec
Copy link
Contributor

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

(I had this issue too - It's that we 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.

@The-Amazing-Coder
Copy link

please help the issue still isnt working

@nealzyy
Copy link

nealzyy commented Apr 15, 2023

if you are using the Mac, there are two things you can look at. 1. Upgrade a payment method in OpenAI.com 2. Regenerate another API key and paste into the .env file. 3. use Command+ I to check if the template extension is properly erased.

@moein9gh
Copy link

create a auto-gpt.json inside root of project

@Pwuts
Copy link
Member

Pwuts commented Apr 19, 2023

Closing as duplicate of #1189

@Pwuts Pwuts closed this as not planned Won't fix, can't repro, duplicate, stale Apr 19, 2023
@Pwuts Pwuts changed the title Auto-GPT.Json does not exist RuntimeError: Failed to get response after 5 retries Apr 19, 2023
SquareandCompass pushed a commit to SquareandCompass/Auto-GPT that referenced this issue Oct 21, 2023
* prompt improvement

* image None for unsupported lang

* notebook update

* prompt improvement
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

10 participants