-
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
Remove config from command decorator #4736
Remove config from command decorator #4736
Conversation
✅ Deploy Preview for auto-gpt-docs canceled.
|
This PR exceeds the recommended size of 500 lines. Please make sure you are NOT addressing multiple issues with one PR. |
6a3532a
to
0c26d73
Compare
This PR exceeds the recommended size of 500 lines. Please make sure you are NOT addressing multiple issues with one PR. |
Signed-off-by: Merwane Hamadi <[email protected]>
The merge-base changed after approval.
0c26d73
to
f46b209
Compare
You changed AutoGPT's behaviour. The cassettes have been updated and will be merged to the submodule when this Pull Request gets merged. |
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## master #4736 +/- ##
==========================================
- Coverage 71.03% 70.90% -0.14%
==========================================
Files 68 68
Lines 3235 3227 -8
Branches 516 512 -4
==========================================
- Hits 2298 2288 -10
+ Misses 774 773 -1
- Partials 163 166 +3
☔ View full report in Codecov by Sentry. |
You changed AutoGPT's behaviour. The cassettes have been updated and will be merged to the submodule when this Pull Request gets merged. |
Check to make sure disabled commands aren't being registered in the prompt with this removed. This stayed for a reason when I refactored |
it's not there I checked. |
Background
This piece of code is making a call to the config singleton and we want to get rid of this singleton.
This code is only useful to prevent use of a command if the AI decides to use it. But it's very unlikely it decides to use it because it's not even in the prompt, since this piece of code makes sure of it:
autogpt/prompts/generator.py
Changes
Documentation
Test Plan
PR Quality Checklist