用deepseek v4读文件的时候会报错
┊ 📖 read /tmp/taobao_fr23_correct_filtered.json 1.1s
⚠️ API call failed (attempt 1/3): BadRequestError [HTTP 400]
🔌 Provider: custom Model: deepseek-v4-pro
🌐 Endpoint: http://xxx/v1
📝 Error: HTTP 400: The content[].thinking in the thinking mode must be passed back to the API.
📋 Details: {'message': 'The content[].thinking in the thinking mode must be passed back to the API.', 'type': 'server_error'}
⏱️ Elapsed: 0.32s Context: 7 msgs, ~7,240 tokens
⚠️ Non-retryable error (HTTP 400) — trying fallback...
🧾 Request debug dump written to:
/tester/sessions/request_dump_20260519_150154_b83c45_20260519_152723_510100.json
❌ Non-retryable error (HTTP 400): HTTP 400: The content[].thinking in the thinking mode must be passed back to the API.
❌ Non-retryable client error (HTTP 400). Aborting.
🔌 Provider: custom Model: deepseek-v4-pro
Anthropic平台的会有这个问题,opai的模式没这个问题
用的claudecode吗,还是opencode,我测试下来mimo也有这个问题,但是用claudecode没这个问题
hermes上用
ds 和mimo 都有这个问题。mimo有发公告。等客户端支持吧。claude code是没问题的,如果还是报400,新开一个会话就能就好。
临时解决办法,你可以搜索下。
【重要公告】关于 Agent 类产品多轮会话中回传 reasoning_content 的说明 为保障模型推理质量,现就 Agent 类产品多轮会话场景下 reasoning_content 的回传要求作出如下说明。
一、适用场景与回传要求
当在 Agent 类产品的多轮会话中开启 MiMo 思考模式,且历史会话中存在工具调用时,后续所有 user 交互轮次中回传的 assistant 如果包含了工具调用,必须完整回传 reasoning_content 字段,否则 API 将返回 400 错误。之所以作此要求,是因为历史 reasoning_content 一旦缺失,模型上下文将不完整,可能表现出指令遵循下降,幻觉增多等现象,影响用户使用体感。
Anthropic平台的会有这个问题,opai的模式没这个问题
都有这个问题,你用vs code 插件版本的claude就会更频繁,但是如果参考这个文章直连ds官方是没问题的
awesome-deepseek-agent/docs/claude_code.zh-CN.md at main · deepseek-ai/awesome-deepseek-agent:https://github.com/deepseek-ai/awesome-deepseek-agent/blob/main/docs/claude_code.zh-CN.md