8000 AI_APICallError: prompt is too long &  AI_APICallError: OAuth token has been revoked. Please obtain a new token. · Issue #164 · sst/opencode · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

AI_APICallError: prompt is too long &  AI_APICallError: OAuth token has been revoked. Please obtain a new token. #164

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
theerkorn opened this issue Jun 17, 2025 · 0 comments
Assignees

Comments

@theerkorn
Copy link

Hi,
I've heavily been using Claude Code and today I wanted to give OpenCode a try, mainly to easily switch models between providers as from time to time this can very much help in reviewing code etc.
Anyways...

In my first project i tried /init after authenticating with Anthropic and I get the message in the Subject title, specifically:
AI_APICallError: prompt is too long: 201082 tokens > 200000 maximum

In my second project, much much smaller in size, I starts without a problem but then I get the second message, I need a new token.
Both is realiably repeatable.

I'd be grateful for any insight any of you might have to resolve these two issues, thank you :-)

@thdxr thdxr self-assigned this Jun 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0