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: add deepseek-v4-pro and deepseek-v4-flash models
- Add deepseek-v4-pro and deepseek-v4-flash to DeepSeek model definitions
- Both models support thinking mode (preserveReasoning), vision, and prompt caching
- Update thinking mode detection to use modelInfo.preserveReasoning flag
instead of hardcoded model name check, making it future-proof
- Add tests for new v4 model info and thinking mode behavior
Addresses #12174
cacheReadsPrice: 0.028,// $0.028 per million tokens (cache hit) - Updated Dec 9, 2025
33
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).`,
34
34
},
35
+
"deepseek-v4-pro": {
36
+
maxTokens: 16_384,// 16K max output
37
+
contextWindow: 128_000,
38
+
supportsImages: true,
39
+
supportsPromptCache: true,
40
+
preserveReasoning: true,
41
+
inputPrice: 2.0,// $2.00 per million tokens (cache miss)
42
+
outputPrice: 8.0,// $8.00 per million tokens
43
+
cacheWritesPrice: 2.0,// $2.00 per million tokens (cache miss)
44
+
cacheReadsPrice: 0.5,// $0.50 per million tokens (cache hit)
45
+
description: `DeepSeek V4 Pro is a flagship reasoning model with thinking capabilities, vision support, and enhanced tool use. Excels at complex reasoning, coding, and multi-step problem solving tasks.`,
46
+
},
47
+
"deepseek-v4-flash": {
48
+
maxTokens: 16_384,// 16K max output
49
+
contextWindow: 128_000,
50
+
supportsImages: true,
51
+
supportsPromptCache: true,
52
+
preserveReasoning: true,
53
+
inputPrice: 1.0,// $1.00 per million tokens (cache miss)
54
+
outputPrice: 4.0,// $4.00 per million tokens
55
+
cacheWritesPrice: 1.0,// $1.00 per million tokens (cache miss)
56
+
cacheReadsPrice: 0.25,// $0.25 per million tokens (cache hit)
57
+
description: `DeepSeek V4 Flash is a fast, cost-efficient reasoning model with thinking capabilities and vision support. Optimized for speed while maintaining strong performance across coding, reasoning, and general tasks.`,
0 commit comments