AutoGPT
AutoGPT copied to clipboard
Maximum context length exceeded after `execute_shell`
⚠️ Search for existing issues first ⚠️
- [X] I have searched the existing issues, and there is no existing issue for my problem
Which Operating System are you using?
Linux
Which version of Auto-GPT are you using?
Latest Release
GPT-3 or GPT-4?
GPT-3.5
Steps to reproduce 🕹
this error came from an installation of a library within the AutoGPT process while running NEXT ACTION: COMMAND = execute_shell ARGUMENTS = {'command_line': 'pip install en_core_web_sm'} Executing command 'pip install en_core_web_sm' in working directory '/home/appuser/auto_gpt_workspace'
Current behavior 😯
openai.error.InvalidRequestError: This model's maximum context length is 8191 tokens, however you requested 9956 tokens (9956 in your prompt; 0 for the completion). Please reduce your prompt; or completion length.
And the program terminates
Expected behavior 🤔
It should auto reduce token length instead of terminating
Your prompt 📝
# Paste your prompt here
Your Logs 📒
<insert your logs here>
I hit the same with:
NEXT ACTION: COMMAND = execute_shell ARGUMENTS = {'command_line': 'pip list --outdated'}
Executing command 'pip list --outdated' in working directory '/Users/../Auto-GPT-0.2.2/auto_gpt_workspace'
I have experienced the same issue
fyi i reran mine after the same kind of crash, and when prompted i told it to, "decrease token size because you keep erroring out," and i mean it worked afterwards so (i also manually accepted each prompt for a few afterwards before giving it -n)
I get error "NEXT ACTION: COMMAND = search_files ARGUMENTS = {'directory': '.'}
Traceback (most recent call last):
File "
C:\Users\Dell User\OneDrive\Desktop\darren\Auto-GPT>" I think this is about tokens any help would be appriciated.