APICallError on Anthropic Claude Pro Max #574

Closed
opened 2026-02-16 17:27:24 -05:00 by yindo · 2 comments
Owner

Originally created by @jonphipps on GitHub (Jul 9, 2025).

Periodically getting this error, which I don't see a way to recover from:

AI_APICallError: input length and `max_tokens` exceed context limit: 143291 + 64000 > 200000, decrease input length or `max_tokens` and try again

Context in status bar is: 141k (70%)

This prevents running /compact as well, so the session is lost.

Originally created by @jonphipps on GitHub (Jul 9, 2025). Periodically getting this error, which I don't see a way to recover from: ```AI_APICallError: input length and `max_tokens` exceed context limit: 143291 + 64000 > 200000, decrease input length or `max_tokens` and try again``` Context in status bar is: 141k (70%) This prevents running /compact as well, so the session is lost.
yindo closed this issue 2026-02-16 17:27:24 -05:00
Author
Owner

@jonphipps commented on GitHub (Jul 9, 2025):

Didn't see #491 before reporting. Sorry

@jonphipps commented on GitHub (Jul 9, 2025): Didn't see #491 before reporting. Sorry
Author
Owner

@thdxr commented on GitHub (Jul 9, 2025):

closing in favor of that

@thdxr commented on GitHub (Jul 9, 2025): closing in favor of that
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#574