Context Window Exceeded: Reduce Input Length or Max Tokens

Resolved 💬 2 comments Opened Feb 25, 2025 by chuckjewell Closed Feb 25, 2025

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

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗