-
Notifications
You must be signed in to change notification settings - Fork 44.6k
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
Fix issues with file reading and writing with Python code #4567
Fix issues with file reading and writing with Python code #4567
Conversation
Deployment failed with the following error:
|
Example of the new error being recognized:
|
3cd4517
to
ba858ad
Compare
Deployment failed with the following error:
|
ba858ad
to
ff56346
Compare
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #4567 +/- ##
==========================================
+ Coverage 69.57% 69.71% +0.14%
==========================================
Files 72 72
Lines 3556 3560 +4
Branches 569 569
==========================================
+ Hits 2474 2482 +8
+ Misses 892 889 -3
+ Partials 190 189 -1
☔ View full report in Codecov by Sentry. |
c8aad07
to
e50eca1
Compare
that's true, I ended up adding commands to check if a directory/file exists and made this available so that the LLM can use it.
analyze_code seems to be called for all sorts of stuff where it wants to "analyze" a problem (not just code).
That is one of the reasons why I suggested elsewhere that we should be able to chain commands together, as in:
note that this would make it possible to run these chains locally, without having to go through the LLM at all: #4157 |
154f955
to
98b97ce
Compare
98b97ce
to
90686ed
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for picking this up!
Deployment failed with the following error:
|
Deployment failed with the following error:
|
Deployment failed with the following error:
|
Deployment failed with the following error:
|
Deployment failed with the following error:
|
Thank you for your service! |
Background
Several times I've had Auto-GPT fail to recognize "does not exist" error for files, and it will attempt other fixes such as analyzing the code (for a file that does not exist). I've also had issues with python code not being executed in the working directory, which means that code written by Auto-GPT that reads and writes files will usually not work (since they use relative paths).
These issues are related:
#4439
#4413
#4366
#4360
#3583
Changes
cwd
when executing python code so that relative paths work as expectedDocumentation
Test Plan
PR Quality Checklist