You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Deepseek V4 Flash Free is showing "Bad Request: {"detail":"Invalid request. Please check the parameters and try again. Details: The input (514881 tokens) is longer than the model's context length (262144 tokens)."}" #35991
I opened opencode,
Selected the Deepseek V4 Flash Free
And When I sent any message it showed me the error Bad Request: {"detail":"Invalid request. Please check the parameters and try again. Details: The input (514881 tokens) is longer than the model's context length (262144 tokens)."}
When Deepseek v4 Flash Free supported 1M Context and even now it works partially but fails again
Plugins
No Plugins
OpenCode version
1.17.14
Steps to reproduce
Open OpenCode
Choose Deepseek V4 Flash Free
Choose a session which has context window of over 265K Tokens
Send Any User Message
You get the error Bad Request: {"detail":"Invalid request. Please check the parameters and try again. Details: The input (514881 tokens) is longer than the model's context length (262144 tokens)."}
If your issue is specifically about the model's context window being misconfigured in OpenCode (set to 262k instead of the advertised 1M), #27929 is the most relevant prior report.
Activity
github-actions commentedon Jul 9, 2026
This issue might be a duplicate of existing issues. Please check:
opencode/deepseek-v4-flash-free#27929: Restore the previous 1M context window foropencode/deepseek-v4-flash-free— directly covers the same model having its context reduced below advertised limitsIf your issue is specifically about the model's context window being misconfigured in OpenCode (set to 262k instead of the advertised 1M), #27929 is the most relevant prior report.
evsphereofficial commentedon Jul 9, 2026
Did it fixed?
github-actions commentedon Sep 8, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.