Skip to content

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

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

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