Skip to content

Commit b111d12

Browse files
authored
feat: enable native tool support for DeepSeek and Doubao models (#9671)
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.
1 parent e682c03 commit b111d12

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

packages/types/src/providers/deepseek.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export const deepSeekModels = {
1111
contextWindow: 128_000,
1212
supportsImages: false,
1313
supportsPromptCache: true,
14+
supportsNativeTools: true,
1415
inputPrice: 0.56, // $0.56 per million tokens (cache miss) - Updated Sept 5, 2025
1516
outputPrice: 1.68, // $1.68 per million tokens - Updated Sept 5, 2025
1617
cacheWritesPrice: 0.56, // $0.56 per million tokens (cache miss) - Updated Sept 5, 2025
@@ -22,6 +23,7 @@ export const deepSeekModels = {
2223
contextWindow: 128_000,
2324
supportsImages: false,
2425
supportsPromptCache: true,
26+
supportsNativeTools: true,
2527
inputPrice: 0.56, // $0.56 per million tokens (cache miss) - Updated Sept 5, 2025
2628
outputPrice: 1.68, // $1.68 per million tokens - Updated Sept 5, 2025
2729
cacheWritesPrice: 0.56, // $0.56 per million tokens (cache miss) - Updated Sept 5, 2025

packages/types/src/providers/doubao.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export const doubaoModels = {
88
contextWindow: 128_000,
99
supportsImages: true,
1010
supportsPromptCache: true,
11+
supportsNativeTools: true,
1112
inputPrice: 0.0001, // $0.0001 per million tokens (cache miss)
1213
outputPrice: 0.0004, // $0.0004 per million tokens
1314
cacheWritesPrice: 0.0001, // $0.0001 per million tokens (cache miss)
@@ -19,6 +20,7 @@ export const doubaoModels = {
1920
contextWindow: 128_000,
2021
supportsImages: true,
2122
supportsPromptCache: true,
23+
supportsNativeTools: true,
2224
inputPrice: 0.0002, // $0.0002 per million tokens
2325
outputPrice: 0.0008, // $0.0008 per million tokens
2426
cacheWritesPrice: 0.0002, // $0.0002 per million
@@ -30,6 +32,7 @@ export const doubaoModels = {
3032
contextWindow: 128_000,
3133
supportsImages: true,
3234
supportsPromptCache: true,
35+
supportsNativeTools: true,
3336
inputPrice: 0.00015, // $0.00015 per million tokens
3437
outputPrice: 0.0006, // $0.0006 per million tokens
3538
cacheWritesPrice: 0.00015, // $0.00015 per million

0 commit comments

Comments
 (0)