DeepSeek V4 API开启Max推理强度教程

2026-04-29 10:081阅读0评论SEO资源
  • 内容介绍
  • 文章标签
  • 相关推荐
问题描述:

from openai import OpenAI client = OpenAI( api_key="sk-", base_url="https://api.deepseek.com" ) response = client.chat.completions.create( model="deepseek-v4-pro", messages=[ {"role": "user", "content": "请写一篇超长的专业分析报告"} ], max_tokens=384000, # 👈 1. 输出长度拉满到384K reasoning_effort="max", # 👈 2. 推理强度拉到max extra_body={"thinking": {"type": "enabled"}} # 开启思考模式 )

写这个也主要是给大家科普一下,好多佬友可能没有注意到。开了之后性能有不小的提升,不过API烧钱的速度也更快了

网友解答:
--【壹】--:

cherry studio里面能开吗


--【贰】--:

1224×1624 195 KB
RikkaHub更新太效率了,这么快就上了!

问题描述:

from openai import OpenAI client = OpenAI( api_key="sk-", base_url="https://api.deepseek.com" ) response = client.chat.completions.create( model="deepseek-v4-pro", messages=[ {"role": "user", "content": "请写一篇超长的专业分析报告"} ], max_tokens=384000, # 👈 1. 输出长度拉满到384K reasoning_effort="max", # 👈 2. 推理强度拉到max extra_body={"thinking": {"type": "enabled"}} # 开启思考模式 )

写这个也主要是给大家科普一下,好多佬友可能没有注意到。开了之后性能有不小的提升,不过API烧钱的速度也更快了

网友解答:
--【壹】--:

cherry studio里面能开吗


--【贰】--:

1224×1624 195 KB
RikkaHub更新太效率了,这么快就上了!