[BUG]: DeepSeek V4 Flash Free models.dev metadata shows 200K context instead of native 1M
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 68/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- typescript
- Lĩnh vực
- api
Hướng nghiên cứu
Bắt đầu bằng cách xác định mục siêu dữ liệu trên models.dev cho opencode/deepseek-v4-flash-free và so sánh mục đó với gói trả phí cũng như siêu dữ liệu của mô hình được dẫn. Cập nhật giới hạn ngữ cảnh thành 1048576, sau đó xác minh rằng API của models.dev trả về giá trị dự kiến và mọi kiểm tra siêu dữ liệu liên quan đều đạt.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- TypeScript
- Star
- 215k
- Fork
- 28.9k
- Merge trung bình
- 7 giờ 53 phút
- Pull request đã merge (30 ngày)
- 278
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của anomalyco/opencode
-
pending close triaging
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
anomalyco/opencode#56765 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
anomalyco/opencode#56735 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
anomalyco/opencode#56663 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
pending close triaging
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
anomalyco/opencode#56625 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
anomalyco/opencode#56624 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của anomalyco/opencode
Issue tương tự
-
documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
components-web-app/docs#260 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 65/100
521xueweihan/HelloGitHub#4025 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
ctrf-io/playwright-ctrf-json-reporter#117 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
voidzero-dev/void#478 ·
Maintainer thường phản hồi trong vòng 1 ngày