[BUG]: DeepSeek V4 Flash Free models.dev metadata shows 200K context instead of native 1M
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- typescript
- Domain
- api
Research direction
Start by locating the models.dev metadata entry for opencode/deepseek-v4-flash-free and compare it with the paid tier and the cited model metadata. Update the context limit to 1048576, then verify that the models.dev API returns the intended value and that any relevant metadata checks pass.
Written by the indexing model from the issue text.
Description
Description
DeepSeek V4 Flash Free on OpenCode Zen is capped at 200K context in models.dev metadata, while the model natively supports 1M context. This cap is not a hardware limitation — it's a metadata configuration issue that reduces the model's utility for long-context coding tasks.
This is NOT a duplicate of #27929 (which was closed with a client-side workaround). The issue here is that the server-side models.dev metadata still reports 200K as the default, which means every new user hits this limit unless they manually override it in their config.
Current state
The models.dev API returns:
{"limit": {"context": 200000, "output": 128000}}
This means:
- Every user defaults to 200K context
- Compression triggers at ~100K (50% of 200K)
- Users must manually edit
opencode.jsonto get the advertised 1M
Why this matters
DeepSeek V4 Flash is marketed as a 1M context model. The free tier should reflect this:
- The model natively supports 1M (confirmed by DeepSeek's official model card)
- Other free models on OpenCode (LongCat-2.0, Nemotron 3 Ultra) get their full 1M context
- DeepSeek V4 Flash is the only one capped at 200K despite having the hardware capability
Request
Update the models.dev metadata for opencode/deepseek-v4-flash-free to reflect the full 1M context window (or at minimum, match what the paid tier offers).
Workaround (for now)
Users can add this to .config/opencode/opencode.json:
{
"provider": {
"opencode": {
"models": {
"deepseek-v4-flash-free": {
"limit": {
"context": 1048576,
"output": 384000
}
}
}
}
}
}
But this should not be necessary — the default should be 1M.
References
- #27929: Previous issue (closed with workaround, not a real fix)
- DeepSeek official model card: confirms 1M native context support
- models.dev: currently reports 200K for the free tier
Environment
- Provider: OpenCode Zen
- Model: opencode/deepseek-v4-flash-free
- models.dev reports: 200K context
- Model natively supports: 1M context
- Dominant language
- TypeScript
- Stars
- 212k
- Forks
- 28.1k
- Avg merge
- 7h 46m
- Merged PRs (30d)
- 380
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from anomalyco/opencode
-
Windows: global-project session path depends on server process drive, hides API-created sessions from desktop pickerPossibly taken @1624318455 claimed this 9 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
[FEATURE]: Test that PermissionV2 declines pending requests when its scope closesPossibly taken @saeedahmed96 claimed this 6 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
EffectFlock heartbeat never refreshes, so locks held over 60 s can be brokenPossibly taken @iceteaSA claimed this 9 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
anomalyco/opencode#51159 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
All issues in anomalyco/opencode
Similar issues
-
needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
LucasSantana-Dev/Lucky#2637 ·
Maintainers usually reply within 1 day
-
Show the error reference on the error pagePossibly taken A pull request linked to this issue is open or already merged. Openenhancement
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
tomjn/coilbox-hub#454 ·
Maintainers usually reply within 1 day
-
frontend
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
icssc/peterportal-client#1224 · 1 comment ·
-
testplan-item
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day