Open
Conversation
Addresses issue in Significant-Gravitas/AutoGPT
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🧪 SWE-Bench Test PR
This is a test PR created for evaluating our PR reviewer bot.
Original Issue:
COMMAND = list_files - openai.error.InvalidRequestError: This model's maximum context length is 4097 tokens
Which Operating System are you using?
Docker
Which version of Auto-GPT are you using?
Master (branch)
GPT-3 or GPT-4?
GPT-3.5
Steps to reproduce 🕹
listing the auto_gpt_workspace folder errors out. maybe this is an erroneous bug, not r...
Base Commit:
9150f32f8b8602395534795ddd2d930a1684e419Language: Python
Known Issues Introduced:
osandsysthat are never referenced in the codenew_eventsparameter - the function doesn't validate ifnew_eventsis actually a list or if it contains Message objects before processingnew_eventswhile iterating over it withnew_events.remove(event)- this can cause items to be skipped during iteration, creating an inefficient O(n²) operation instead of filteringtrim_messagesmethod, leaving it completely undocumented despite its complex logic and return valuesGenerated by SWE-Bench Automation Pipeline