Skip to content

Commit 774afd5

Browse files
committed
feat: add reasoning support for DeepSeek V3.1 and GLM-4.5 models
- Add supportsReasoningEffort flag to DeepSeek chat and reasoner models - Add supportsReasoningEffort flag to GLM-4.5 and GLM-4.5-air models (both international and mainland) - This enables the reasoning/thinking section visibility for these models when used through OpenAI Compatible provider Fixes #7370
1 parent fc70012 commit 774afd5

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-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+
supportsReasoningEffort: true, // DeepSeek V3.1 supports thinking/reasoning
1415
inputPrice: 0.27, // $0.27 per million tokens (cache miss)
1516
outputPrice: 1.1, // $1.10 per million tokens
1617
cacheWritesPrice: 0.27, // $0.27 per million tokens (cache miss)
@@ -22,6 +23,7 @@ export const deepSeekModels = {
2223
contextWindow: 128_000,
2324
supportsImages: false,
2425
supportsPromptCache: true,
26+
supportsReasoningEffort: true, // DeepSeek-R1 supports thinking/reasoning
2527
inputPrice: 0.55, // $0.55 per million tokens (cache miss)
2628
outputPrice: 2.19, // $2.19 per million tokens
2729
cacheWritesPrice: 0.55, // $0.55 per million tokens (cache miss)

packages/types/src/providers/zai.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export const internationalZAiModels = {
1212
contextWindow: 131_072,
1313
supportsImages: false,
1414
supportsPromptCache: true,
15+
supportsReasoningEffort: true, // GLM-4.5 supports thinking/reasoning
1516
inputPrice: 0.6,
1617
outputPrice: 2.2,
1718
cacheWritesPrice: 0,
@@ -24,6 +25,7 @@ export const internationalZAiModels = {
2425
contextWindow: 131_072,
2526
supportsImages: false,
2627
supportsPromptCache: true,
28+
supportsReasoningEffort: true, // GLM-4.5-Air supports thinking/reasoning
2729
inputPrice: 0.2,
2830
outputPrice: 1.1,
2931
cacheWritesPrice: 0,
@@ -41,6 +43,7 @@ export const mainlandZAiModels = {
4143
contextWindow: 131_072,
4244
supportsImages: false,
4345
supportsPromptCache: true,
46+
supportsReasoningEffort: true, // GLM-4.5 supports thinking/reasoning
4447
inputPrice: 0.29,
4548
outputPrice: 1.14,
4649
cacheWritesPrice: 0,
@@ -73,6 +76,7 @@ export const mainlandZAiModels = {
7376
contextWindow: 131_072,
7477
supportsImages: false,
7578
supportsPromptCache: true,
79+
supportsReasoningEffort: true, // GLM-4.5-Air supports thinking/reasoning
7680
inputPrice: 0.1,
7781
outputPrice: 0.6,
7882
cacheWritesPrice: 0,

0 commit comments

Comments
 (0)