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

Warning: The file 'auto-gpt.json' does not exist. Local memory would not be saved to a file. Using memory of type: LocalCache #1227

Closed
1 task done
888yyh opened this issue Apr 14, 2023 · 13 comments
Labels
API access Trouble with connecting to the API

Comments

@888yyh
Copy link

888yyh commented Apr 14, 2023

Duplicates

  • I have searched the existing issues

Steps to reproduce 🕹

No response

Current behavior 😯

No response

Expected behavior 🤔

No response

Your prompt 📝

Warning: The file 'auto-gpt.json' does not exist. Local memory would not be saved to a file.
Using memory of type: LocalCache
how to fix,thanks

@Aruen24
Copy link

Aruen24 commented Apr 14, 2023

I also get the Warning

@Aruen24
Copy link

Aruen24 commented Apr 14, 2023

Creating a file called auto-gpt.json with this content works for me:
{}

@888yyh
Copy link
Author

888yyh commented Apr 14, 2023

Creating a file called auto-gpt.json with this content works for me: {}

is it an empty file? where did you put the json file? i created an empty file auto-gpy.json,and put it in the root directory,while the warning still appeared.thanks

@Hao1Zhang1
Copy link

Create the file and put it in the root dir. This is because the auto-gpt.json is ignored, just create one.

@888yyh
Copy link
Author

888yyh commented Apr 14, 2023

i haved solved it by running successfully once

@Farhanrazaa
Copy link

Farhanrazaa commented Apr 14, 2023

i haved solved it by running successfully once

What's the root directory. Auto-gpt folder? please help I'm getting the same issue

@colemaddox
Copy link

Yes, it is in the root of the auto-gpt folder.

@Farhanrazaa
Copy link

Thanks, that problem is solved but now I'm facing a new issue...

Traceback (most recent call last):
File "C:\Users\hi\Downloads\Compressed\Auto-GPT-master\Auto-GPT-master\scripts\main.py", line 441, in
main()
File "C:\Users\hi\Downloads\Compressed\Auto-GPT-master\Auto-GPT-master\scripts\main.py", line 304, in main
agent.start_interaction_loop()
File "C:\Users\hi\Downloads\Compressed\Auto-GPT-master\Auto-GPT-master\scripts\main.py", line 345, in start_interaction_loop
assistant_reply = chat.chat_with_ai(
^^^^^^^^^^^^^^^^^^
File "C:\Users\hi\Downloads\Compressed\Auto-GPT-master\Auto-GPT-master\scripts\chat.py", line 126, in chat_with_ai
assistant_reply = create_chat_completion(
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hi\Downloads\Compressed\Auto-GPT-master\Auto-GPT-master\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

Plesae help...

@888yyh
Copy link
Author

888yyh commented Apr 14, 2023

Thanks, that problem is solved but now I'm facing a new issue...

Traceback (most recent call last): File "C:\Users\hi\Downloads\Compressed\Auto-GPT-master\Auto-GPT-master\scripts\main.py", line 441, in main() File "C:\Users\hi\Downloads\Compressed\Auto-GPT-master\Auto-GPT-master\scripts\main.py", line 304, in main agent.start_interaction_loop() File "C:\Users\hi\Downloads\Compressed\Auto-GPT-master\Auto-GPT-master\scripts\main.py", line 345, in start_interaction_loop assistant_reply = chat.chat_with_ai( ^^^^^^^^^^^^^^^^^^ File "C:\Users\hi\Downloads\Compressed\Auto-GPT-master\Auto-GPT-master\scripts\chat.py", line 126, in chat_with_ai assistant_reply = create_chat_completion( ^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\hi\Downloads\Compressed\Auto-GPT-master\Auto-GPT-master\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

Plesae help...

check whether your openai-key is useful or out of date or not;check whether your network or vpn is useful or not

@Farhanrazaa
Copy link

I checked, even created a new key and tried again, also tried with vpn but nothing worked.
Its still showing the same...

@JuroOravec
Copy link
Contributor

Duplicate of #1189. @888yyh 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.

@DrReefer
Copy link

Creating a file called auto-gpt.json with this content works for me: {}

When I go to autogpt file, then click new, then select, folder or text document?

@ntindle
Copy link
Member

ntindle commented Apr 23, 2023

Not a bug

@ntindle ntindle closed this as completed Apr 23, 2023
@anonhostpi anonhostpi added the API access Trouble with connecting to the API label May 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API access Trouble with connecting to the API
Projects
None yet
Development

No branches or pull requests

9 participants