From 4e3fe004f4c15a9791d006bea931cc06c8a0d25c Mon Sep 17 00:00:00 2001 From: Bee <68532117+abeatrix@users.noreply.github.com> Date: Thu, 4 Dec 2025 09:59:27 -0800 Subject: [PATCH] feat: enable native tool calling for deepseek 3.2 [AI-27] (#7877) * feat: enable native tool calling for deepseek 3.2 Add isDeepSeek32ModelFamily() function to identify DeepSeek 3.2 models and integrate it into the isNextGenModelFamily() check. This classifies DeepSeek 3.2 as a next-generation model family, enabling native tool calling support. * typo --- .changeset/forty-carpets-grin.md | 5 +++++ src/utils/model-utils.ts | 8 +++++++- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 .changeset/forty-carpets-grin.md diff --git a/.changeset/forty-carpets-grin.md b/.changeset/forty-carpets-grin.md new file mode 100644 index 00000000..90d3b254 --- /dev/null +++ b/.changeset/forty-carpets-grin.md @@ -0,0 +1,5 @@ +--- +"claude-dev": patch +--- + +Add DeepSeek 3.2 to native tool calling allow list diff --git a/src/utils/model-utils.ts b/src/utils/model-utils.ts index 197fa893..4c2bf725 100644 --- a/src/utils/model-utils.ts +++ b/src/utils/model-utils.ts @@ -121,6 +121,11 @@ export function isGemini3ModelFamily(id: string): boolean { return modelId.includes("gemini3") || modelId.includes("gemini-3") } +function isDeepSeek32ModelFamily(id: string): boolean { + const modelId = normalize(id) + return modelId.includes("deepseek") && modelId.includes("3.2") +} + export function isNextGenModelFamily(id: string): boolean { const modelId = normalize(id) return ( @@ -130,7 +135,8 @@ export function isNextGenModelFamily(id: string): boolean { isGPT5ModelFamily(modelId) || isMinimaxModelFamily(modelId) || isGemini3ModelFamily(modelId) || - isNextGenOpenSourceModelFamily(modelId) + isNextGenOpenSourceModelFamily(modelId) || + isDeepSeek32ModelFamily(modelId) ) }