Skip to content

Context Window Exceeded: Reduce Input Length or Max Tokens #52

Closed as duplicate

Description

@chuckjewell

Bug Description
API error on a 200ish line file in a large codebase:
API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"input length and max_tokens exceed context limit: 186028 + 20000 > 204698, decrease input length or max_tokens and try again"}}

Environment Info

  • Platform: macos
  • Terminal: iTerm.app
  • Version: 0.2.9
  • Feedback ID: 8a5add9e-5759-4dde-997b-1720f937eae3

Activity

  1. sid374 commented on Feb 25, 2025

    @sid374
    Contributor

    Closing as duplicate of #52

  2. added
    duplicateThis issue or pull request already exists
    on Feb 25, 2025
  3. github-actions commented on Aug 9, 2025

    @github-actions

    This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.

  4. locked as resolved and limited conversation to collaborators on Aug 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions