Closed eco79 closed 1 year ago
The function is called write_to_file, but it's a case of the AI not paying attention to it's prompt. We may have to look for some synonyms to lookup the right function.
is there a default place where these files are written? i don't seem to find any in the Auto-GPT folder.
Using Win 10 and --gpt3only mode, it wasn't able to create a file from scratch as far as I can tell but it did see the file I created and then wrote something to it after instructed to do so.
The instructions used to verify...
"I want to test something to determine if you can successfully write something to a file. I have created a file called note.txt in the working directory. Can you please write the sentence "May the force be with you" to that file to confirm you have the ability to write to a file?"
is there a default place where these files are written? i don't seem to find any in the Auto-GPT folder.
auto_gpt_workspace
folder in the folder from which ./main.py
is called
If GPT uses the same wrong name consistently, we could try changing the name of the command to the one it "prefers" and see if that improves things.
One way to identify its preferences on such matters would be to ask it to invent such an API from scratch (say, 5 times) and see what kind of names it comes up with.
Closing for now as this is an issue with the GPT. Of course you're welcome to investigate how we can mitigate this and reopen. :)
Duplicates
Steps to reproduce 🕹
In a complex task, some of the agents need to write to a file. They are always failing with this error:
Command save_to_file returned: Unknown command 'save_to_file'.
Current behavior 😯
It throws the error and continues.
Expected behavior 🤔
It should write to file or give a better error message by explaining why it can't write or a possible solution
Your prompt 📝