-
Notifications
You must be signed in to change notification settings - Fork 45k
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
how to reduce prompt? #2469
Comments
Hi! what is you environments configuration? Have you set up a .env? If so, what is your token limit configured for? |
I have the same issue... I tried to make auto-gpt change the code of a cloned version of hisself and also directly improve his code but it always fail by not having such an error like luoshu999 |
NEXT ACTION: COMMAND = search_files ARGUMENTS = {'directory': '/home/123/Auto-GPT/auto_gpt_workspace/code'} openai.error.InvalidRequestError: This model's maximum context length is 8191 tokens, however you requested 157096 tokens (157096 in your prompt; 0 for the completion). Please reduce your prompt; or completion length ubuntu 20.04 on lastest master |
same here openai.error.InvalidRequestError: This model's maximum context length is 4097 tokens. However, you requested 13997 tokens (1355 in the messages, 12642 in the completion). Please reduce the length of the messages or completion. |
same here |
This has been resolved for |
Command browse_website returned: Error: This model's maximum context length is 8191 tokens, however you requested 12227 tokens (12227 in your prompt; 0 for the completion). Please reduce your prompt; or completion length?
The text was updated successfully, but these errors were encountered: