You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(deepseek): add DeepSeek V4 Flash/Pro models with reasoning effort support
- Add deepseek-v4-flash and deepseek-v4-pro model definitions with pricing
- Set deepseek-v4-flash as the new default model
- Mark legacy deepseek-chat and deepseek-reasoner as deprecated
- Add reasoningEffort option to API handler settings (high/max)
- Add ensureReasoningContentPreserved safety net to preserve reasoning
content during convertToR1Format edge cases
- Update zh-CN and en settings localization for thinking budget
- Update ThinkingBudget UI component for new model properties
outputPrice: 0.42,// $0.42 per million tokens - Updated Dec 9, 2025
19
19
cacheWritesPrice: 0.28,// $0.28 per million tokens (cache miss) - Updated Dec 9, 2025
20
20
cacheReadsPrice: 0.028,// $0.028 per million tokens (cache hit) - Updated Dec 9, 2025
21
-
description: `DeepSeek-V3.2 (Non-thinking Mode) achieves a significant breakthrough in inference speed over previous models. It tops the leaderboard among open-source models and rivals the most advanced closed-source models globally. Supports JSON output, tool calls, chat prefix completion (beta), and FIM completion (beta).`,
21
+
description: `DeepSeek-V3.2 (Non-thinking Mode) - Legacy model. Use deepseek-v4-flash for better performance.`,
outputPrice: 0.42,// $0.42 per million tokens - Updated Dec 9, 2025
31
31
cacheWritesPrice: 0.28,// $0.28 per million tokens (cache miss) - Updated Dec 9, 2025
32
32
cacheReadsPrice: 0.028,// $0.028 per million tokens (cache hit) - Updated Dec 9, 2025
33
-
description: `DeepSeek-V3.2 (Thinking Mode) achieves performance comparable to OpenAI-o1 across math, code, and reasoning tasks. Supports Chain of Thought reasoning with up to 8K output tokens. Supports JSON output, tool calls, and chat prefix completion (beta).`,
33
+
description: `DeepSeek-V3.2 (Thinking Mode) - Legacy model. Use deepseek-v4-pro for better performance.`,
34
+
},
35
+
"deepseek-v4-flash": {
36
+
maxTokens: 384_000,// 384K max output
37
+
contextWindow: 1_000_000,// 1M context window
38
+
supportsImages: false,
39
+
supportsPromptCache: true,
40
+
preserveReasoning: true,// Also supports thinking mode
inputPrice: 0.14,// $0.14 per million tokens (cache miss, ¥1/M)
44
+
outputPrice: 0.28,// $0.28 per million tokens (¥2/M)
45
+
cacheWritesPrice: 0.14,// $0.14 per million tokens (cache miss, ¥1/M)
46
+
cacheReadsPrice: 0.03,// $0.03 per million tokens (cache hit, ¥0.2/M)
47
+
description: `DeepSeek-V4-Flash - Fast and efficient model with 1M context window and 384K max output. Supports thinking mode for better reasoning. Best for general tasks. Supports JSON output, tool calls, and prompt caching.`,
48
+
},
49
+
"deepseek-v4-pro": {
50
+
maxTokens: 384_000,// 384K max output
51
+
contextWindow: 1_000_000,// 1M context window
52
+
supportsImages: false,
53
+
supportsPromptCache: true,
54
+
preserveReasoning: true,// Enables interleaved thinking mode for tool calls
inputPrice: 1.68,// $1.68 per million tokens (cache miss, ¥12/M)
58
+
outputPrice: 3.36,// $3.36 per million tokens (¥24/M)
59
+
cacheWritesPrice: 1.68,// $1.68 per million tokens (cache miss, ¥12/M)
60
+
cacheReadsPrice: 0.14,// $0.14 per million tokens (cache hit, ¥1/M)
61
+
description: `DeepSeek-V4-Pro (Thinking Mode) - Advanced reasoning model with Chain of Thought capabilities. 1M context window, 384K max output. Supports reasoning_effort parameter (high/max) for deeper thinking. Ideal for complex reasoning, math, and code tasks.`,
0 commit comments