Repository navigation
fix(deepseek): expose V4 max thinking levels - #73008
Conversation
Greptile SummaryAdds a Confidence Score: 5/5Safe to merge — fixes a clear missing registration with no behaviour changes outside the V4 thinking path. Only a P2 style finding (minor duplication between index.ts and stream.ts). The fix is correct, well-tested, and properly scoped. No files require special attention. Prompt To Fix All With AIThis is a comment left during a code review.
Path: extensions/deepseek/index.ts
Line: 23-26
Comment:
**Duplicate `isDeepSeekV4ModelId` helper**
`stream.ts` already defines a private `isDeepSeekV4ModelId` that does exact-match comparison, while this new version adds `.toLowerCase()` first. The logic is effectively the same for real catalog IDs, but the two definitions can drift. Consider exporting this helper from a shared location (e.g. `./model-ids.js`) and importing it in both files to keep them in sync.
How can I resolve this? If you propose a fix, please make it concise.Reviews (2): Last reviewed commit: "fix(deepseek): expose v4 max thinking le..." | Re-trigger Greptile |
8a70203 to
908365b
Compare
3f95d42 to
4a95e3c
Compare
|
@vincentkoc Could you review this PR, please ? |
|
Codex review: needs maintainer review before merge. What this changes: The PR adds a DeepSeek V4 provider thinking profile for native V4 Flash/Pro models, shares the V4 model matcher, adds regression coverage, and updates DeepSeek/thinking docs plus the changelog. Maintainer follow-up before merge: This is already a narrow open implementation PR for a valid provider-owned bug; the remaining work is maintainer review, CI/changed-gate confirmation, and merge handling rather than a separate ClawSweeper repair PR. Security review: Security review cleared: Security review cleared: the patch only changes DeepSeek provider logic, targeted tests, docs, and changelog, with no CI, dependency, secret, package publishing, or executable supply-chain changes. Review detailsBest possible solution: Land the provider-owned DeepSeek V4 thinking profile after maintainer review and green required checks, then close the native DeepSeek reports it covers while keeping the OpenRouter-specific follow-up separate. Do we have a high-confidence way to reproduce the issue? Yes. A high-confidence static reproduction exists on current main: Is this the best way to solve the issue? Yes. The PR uses the narrowest maintainable fix: DeepSeek owns the model-specific level exposure, while the existing shared DeepSeek V4 transport wrapper continues to handle request shaping without changing core thinking fallback behavior. Acceptance criteria:
What I checked:
Likely related people:
Remaining risk / open question:
Codex review notes: model gpt-5.5, reasoning high; reviewed against de1ac12f1c04. |
8c2152d to
00dfe9f
Compare
|
Addressed the remaining maintainability risk. The PR previously had two separate DeepSeek V4 model-id helpers:
I moved the matcher into the existing DeepSeek-local model module, |
20ec0ee to
63787ca
Compare
f332615 to
29a2065
Compare
8fc2e0d to
ef561a5
Compare
|
Merged via squash.
Thanks @ai-hpc! |
|
Thanks. @hxy91819 |
Merged via squash. Prepared head SHA: ef561a5 Co-authored-by: ai-hpc <[email protected]> Co-authored-by: hxy91819 <[email protected]> Reviewed-by: @hxy91819
Merged via squash. Prepared head SHA: ef561a5 Co-authored-by: ai-hpc <[email protected]> Co-authored-by: hxy91819 <[email protected]> Reviewed-by: @hxy91819
Merged via squash. Prepared head SHA: ef561a5 Co-authored-by: ai-hpc <[email protected]> Co-authored-by: hxy91819 <[email protected]> Reviewed-by: @hxy91819
Merged via squash. Prepared head SHA: ef561a5 Co-authored-by: ai-hpc <[email protected]> Co-authored-by: hxy91819 <[email protected]> Reviewed-by: @hxy91819
Merged via squash. Prepared head SHA: ef561a5 Co-authored-by: ai-hpc <[email protected]> Co-authored-by: hxy91819 <[email protected]> Reviewed-by: @hxy91819
Merged via squash. Prepared head SHA: ef561a5 Co-authored-by: ai-hpc <[email protected]> Co-authored-by: hxy91819 <[email protected]> Reviewed-by: @hxy91819
Summary
deepseek/deepseek-v4-proanddeepseek/deepseek-v4-flashrejected/think maxand/think xhighbefore request construction.resolveThinkingProfilewithoff|minimal|low|medium|high|xhigh|max, added regression coverage, and documented the supported levels.Change Type (select all)
Scope (select all touched areas)
Linked Issue/PR
Root Cause (if applicable)
resolveThinkingProfile, so thinking validation fell back to the base levels only.xhigh/maxvia the stream wrapper.Regression Test Plan (if applicable)
extensions/deepseek/index.test.tsxhighandmax; non-V4 DeepSeek models do not opt into the V4 profile.User-visible / Behavior Changes
/think xhighand/think maxare accepted for native DeepSeek V4 Flash and Pro models.Diagram (if applicable)
Additional live test result:
Human verified with Deepseek API Key: