-
Notifications
You must be signed in to change notification settings - Fork 953
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
Proper way of managing large context window for ComputerTool #111
Comments
There are a few possibilities here, and I am not sure which one you are hitting. Would you be able to share some sample code? I am basically wondering if its:
I'm guessing its the former, but let me know! |
sure, I just have my basic Agent instantiation here, followed by an arbitrarily large max_turns
Now, I made a modification to
and get:
Thanks for your feedback. |
@huntersgordon do you happen to have a request ID so we can debug this? #114 adds the request ID to the error log (specifically want to debug the original issue with |
Hi @rm-openai , not seeing any request ID here. What should it be under? |
@huntersgordon It should have printed a bunch of text including a stack trace - at the very top of the stack trace it should say something like
(I'm assuming you have cloned the repo and hence have #114 included) |
If you havent cloned, just uninstall and reinstall the SDK with
|
This issue is stale because it has been open for 7 days with no activity. |
I am enjoying using
ComputerTool
, but want to create a persistent agent that lasts for many generations, for example,max_turns > 10000
I run into the basic error:
Error getting response: Error code: 400 - {'error': {'message': 'This request exceeds the context size limit. Please reduce the size of the prompt and try again.', 'type': 'invalid_request_error', 'param': None, 'code': None}}
Are there builtin functions that can help me prune this?
I understand this comes from the openAI core API, but can someone please direct me to where I can manage this? What are some good approaches to managing context/input as the size increases for a persistent agent?
The text was updated successfully, but these errors were encountered: