feat(providers): default DeepSeek to V4-Pro (1M context, Opus-tier coding)#83
Open
feat(providers): default DeepSeek to V4-Pro (1M context, Opus-tier coding)#83
Conversation
…ding)
DeepSeek V4 launched 2026-04-24 with two MoE models — `deepseek-v4-pro`
(1.6T params / 49B activated) and `deepseek-v4-flash` (284B / 13B). Both
ship with a 1M-token context window and dual thinking/non-thinking modes
over the existing OpenAI-compatible interface, so the integration cost
is just a model-name + context-window bump.
Why default to Pro:
• Pro is Claude-Opus-tier on coding benchmarks at ~7× lower price,
and tool-use reliability matters more than per-token cost for an
agent loop. Users on a budget can override with `--text-model
deepseek-v4-flash`.
• The legacy names `deepseek-chat` and `deepseek-reasoner`
deprecate 2026-07-24, and currently route to V4-Flash anyway.
Bumping the default now avoids a silent surprise at deprecation.
What this does NOT change:
• DeepSeek still has no native vision model. `visionModel` keeps the
placeholder text-model name so the provider profile stays uniform;
real vision needs a mixed pipeline (text=DeepSeek, vision=Anthropic
or GPT-4o or Gemini Flash).
• No new MODEL_QUIRKS entries. V4 thinking mode silently ignores
`temperature` rather than rejecting it (unlike legacy `deepseek-
reasoner`), so the existing request flow works as-is. A quirk for
legacy `deepseek-reasoner` would be additive and is tracked for
follow-up once PR #82's MODEL_QUIRKS infra lands on main.
Validation:
• typecheck clean, lint 0 errors (64 pre-existing warnings unchanged),
434/435 tests passing (1 pre-existing skip).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
deepseek-chat(V3-era, 64k ctx) →deepseek-v4-pro(1.6T MoE, 1M ctx, Claude-Opus-tier coding).baseUrl, same auth header — no new code paths, no new env vars, no new dependencies.Why Pro by default
DeepSeek V4 launched 2026-04-24 with two MoE variants:
deepseek-v4-prodeepseek-v4-flashPro is roughly Claude-Opus-tier on coding benchmarks at ~7× lower price, and tool-use reliability matters more than per-token cost for an agent loop. Budget-conscious users can still flip to Flash via
--text-model deepseek-v4-flashor.clawdcursor-config.json.The legacy names
deepseek-chatanddeepseek-reasonerdeprecate 2026-07-24 and currently route to V4-Flash anyway, so leaving the default atdeepseek-chatwould silently surprise users at the deprecation cliff.What this PR does NOT do
temperaturerather than rejecting it (unlike legacydeepseek-reasoner, which 400s ontemperature ≠ 1). The existing request flow works as-is for V4. A quirk for legacydeepseek-reasonerwould be additive and is tracked as a follow-up once fix(agent): five model-robustness bugs (parser, quirks, cannot_read, DPI, safety bypass) #82'sMODEL_QUIRKSinfra lands on main.visionModelkeeps the text-model name as a placeholder so the provider profile shape stays uniform; real vision needs a mixed pipeline (text=DeepSeek, vision=Anthropic / GPT-4o / Gemini Flash).Test plan
npm run typecheck— clean.npm run lint— 0 errors (64 pre-existing warnings unchanged).npm test— 434/435 passing (1 pre-existing skip), no diff in failure pattern.DEEPSEEK_API_KEY(the provider plumbing is unchanged, so this is just verifying the new model name is accepted by the endpoint).Follow-ups
MODEL_QUIRKSentry fordeepseek-reasoner(legacy R1 rejectstemperature ≠ 1) — depends on fix(agent): five model-robustness bugs (parser, quirks, cannot_read, DPI, safety bypass) #82 merging first.visionModelfield and drop the placeholder comment.🤖 Generated with Claude Code