400 status_code=400, The `reasoning_content` in the thinking mode must be passed...
错误信息
API Error: 400 status_code=400, The `reasoning_content` in the thinking mode must be passed back to the API. (request id:
202608011618261035451868268d9d6rrpztzd1) (request id: 20260801161826002005007c14228f5oRJzbzY3
AI 解决方案
🔍 错误分析
1. 🌐 错误翻译
原文:API Error: 400 status_code=400, The `reasoning_content` in the thinking mode must be passed back to the API. (request id: 202608011618261035451868268d9d6rrpztzd1) (request id: 20260801161826002005007c14228f5oRJzbzY3)
译文:API错误:400状态码=400,在思考模式下,`reasoning_content`(推理内容)必须传递回API。
2. 🎯 原因分析
reasoning_content字段3. 💡 解决方案
确保在API调用中正确添加
reasoning_content字段,以下是修复示例:// 修复后的API请求示例
const response = await fetch('https://api.dmxapi.com/v1/thinking', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
// ...其他必要参数
reasoning_content: '这里是完整的推理思考过程内容', // 必须添加的字段
thinking_mode: true, // 开启思考模式
// ...其他参数
})
});