[BUG]: DeepSeek V4 Flash Free models.dev metadata shows 200K context instead of native 1M
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 68/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Tranquilo
- Stack tecnológico
- typescript
- Área
- api
Línea de trabajo
Comienza localizando la entrada de metadatos de models.dev para opencode/deepseek-v4-flash-free y compárala con el nivel de pago y los metadatos del modelo citado. Actualiza el límite de contexto a 1048576 y verifica que la API de models.dev devuelva el valor previsto y que todas las comprobaciones de metadatos relevantes pasen correctamente.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- TypeScript
- Estrellas
- 212k
- Forks
- 28.1k
- Merge medio
- 8 h 49 min
- PR fusionados (30 d)
- 348
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de anomalyco/opencode
-
Windows: global-project session path depends on server process drive, hides API-created sessions from desktop pickerPosiblemente ocupada @1624318455 la tomó hace 10 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
[FEATURE]: Test that PermissionV2 declines pending requests when its scope closesPosiblemente ocupada @saeedahmed96 la tomó hace 8 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
EffectFlock heartbeat never refreshes, so locks held over 60 s can be brokenPosiblemente ocupada @iceteaSA la tomó hace 11 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
anomalyco/opencode#51159 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
Todos los issues de anomalyco/opencode
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
solana-foundation/solana-com#2245 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
`document.cookie` with `max-age=0` does not delete the cookiePosiblemente ocupada @BartInTheField la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
capricorn86/happy-dom#2460 ·
Los mantenedores suelen responder en 2 días