Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[BUG]: DeepSeek V4 Flash Free models.dev metadata shows 200K context instead of native 1M

Chiusa Adatta ai principianti
#40,958 5 commenti 1 reazione 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
68/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
typescript
Ambito
api

Direzione di ricerca

Inizia individuando la voce dei metadati di models.dev per opencode/deepseek-v4-flash-free e confrontala con il livello a pagamento e con i metadati del modello citato. Aggiorna il limite di contesto a 1048576, quindi verifica che l'API di models.dev restituisca il valore previsto e che tutti i controlli dei metadati pertinenti vadano a buon fine.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.json to 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
Lingua principale
TypeScript
Stelle
212k
Fork
28.1k
Merge medio
8h 49m
PR unite (30g)
348

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di anomalyco/opencode

Tutte le issue di anomalyco/opencode

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.