From c448349b69f16ed7eac057c3c781da614c2dd67e Mon Sep 17 00:00:00 2001 From: daniel-lxs Date: Fri, 28 Nov 2025 09:34:32 -0500 Subject: [PATCH] feat: enable native tool support for DeepSeek and Doubao models Add supportsNativeTools: true to DeepSeek and Doubao model definitions, enabling native OpenAI-compatible tool calling for these providers. Both providers already extend OpenAiHandler which has built-in support for native tools, so this change is all that's needed to enable the feature. --- packages/types/src/providers/deepseek.ts | 2 ++ packages/types/src/providers/doubao.ts | 3 +++ 2 files changed, 5 insertions(+) diff --git a/packages/types/src/providers/deepseek.ts b/packages/types/src/providers/deepseek.ts index f916557235..c5c297cdb9 100644 --- a/packages/types/src/providers/deepseek.ts +++ b/packages/types/src/providers/deepseek.ts @@ -11,6 +11,7 @@ export const deepSeekModels = { contextWindow: 128_000, supportsImages: false, supportsPromptCache: true, + supportsNativeTools: true, inputPrice: 0.56, // $0.56 per million tokens (cache miss) - Updated Sept 5, 2025 outputPrice: 1.68, // $1.68 per million tokens - Updated Sept 5, 2025 cacheWritesPrice: 0.56, // $0.56 per million tokens (cache miss) - Updated Sept 5, 2025 @@ -22,6 +23,7 @@ export const deepSeekModels = { contextWindow: 128_000, supportsImages: false, supportsPromptCache: true, + supportsNativeTools: true, inputPrice: 0.56, // $0.56 per million tokens (cache miss) - Updated Sept 5, 2025 outputPrice: 1.68, // $1.68 per million tokens - Updated Sept 5, 2025 cacheWritesPrice: 0.56, // $0.56 per million tokens (cache miss) - Updated Sept 5, 2025 diff --git a/packages/types/src/providers/doubao.ts b/packages/types/src/providers/doubao.ts index f948450bc4..c822d69f0b 100644 --- a/packages/types/src/providers/doubao.ts +++ b/packages/types/src/providers/doubao.ts @@ -8,6 +8,7 @@ export const doubaoModels = { contextWindow: 128_000, supportsImages: true, supportsPromptCache: true, + supportsNativeTools: true, inputPrice: 0.0001, // $0.0001 per million tokens (cache miss) outputPrice: 0.0004, // $0.0004 per million tokens cacheWritesPrice: 0.0001, // $0.0001 per million tokens (cache miss) @@ -19,6 +20,7 @@ export const doubaoModels = { contextWindow: 128_000, supportsImages: true, supportsPromptCache: true, + supportsNativeTools: true, inputPrice: 0.0002, // $0.0002 per million tokens outputPrice: 0.0008, // $0.0008 per million tokens cacheWritesPrice: 0.0002, // $0.0002 per million @@ -30,6 +32,7 @@ export const doubaoModels = { contextWindow: 128_000, supportsImages: true, supportsPromptCache: true, + supportsNativeTools: true, inputPrice: 0.00015, // $0.00015 per million tokens outputPrice: 0.0006, // $0.0006 per million tokens cacheWritesPrice: 0.00015, // $0.00015 per million