欢迎回来

登录 EAKE AI,继续您的智能之旅

忘记密码?
还没有账号?立即注册

DeepSeek V4 Thinking 模式详解

2026-05-13 · DeepSeek
## DeepSeek V4 Thinking 模式详解 ### 什么是 Thinking 模式 DeepSeek V4 系列原生支持 Thinking 模式(思维链推理),模型在回答前先进行内部推理,输出更准确的结果。 ### 模式切换 ```python from openai import OpenAI client = OpenAI(base_url="https://api.deepseek.com/v1", api_key="your-key") # 标准(平衡模式) response = client.chat.completions.create( model="deepseek-v4-pro", reasoning_effort="standard", messages=[{"role": "user", "content": "解方程 x^2 + 3x - 4 = 0"}] ) # 扩展推理(数学/科研) response = client.chat.completions.create( model="deepseek-v4-pro", reasoning_effort="extended", messages=[{"role": "user", "content": "证明哥德巴赫猜想"}] ) ``` ### V4-Pro vs V4-Flash 参数对比 | 参数 | V4-Pro | V4-Flash | |------|--------|----------| | 总参数 | 1.6T | 284B | | 激活参数 | 49B | 13B | | 最大上下文 | 1,000,000 tokens | 1,000,000 tokens | | 输入价格(缓存命中) | 0.25/M | 0.2/M | | 输出价格 | 6/M | 2/M | ### 适用场景 - V4-Pro:数学推理、竞赛编程、企业级应用 - V4-Flash:日常对话、代码补全、大规模调用

评论区

该文章暂未开放评论功能。