Skip to content

Proper way of managing large context window for ComputerTool #111

Open
@huntersgordon

Description

@huntersgordon

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-more-infoWaiting for a reply/more info from the authorquestionQuestion about using the SDKstale

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions