Files
Guobin ZhangandGrey 0e86335538 fix: 透传 reasoning_content,修复 DeepSeek/MiMo thinking 模式下的 400 错误 (#72)
API 开启 thinking 模式时,返回的 reasoning_content 必须在下一轮请求中原样
带回。当前代码丢弃了该字段,导致后续调用 100% 返回 400 错误,重试机制陷入
无限循环。修复内容:
- StandardResponse 新增 reasoning_content 字段
- OpenAIChatProvider 从响应中提取该字段
- 各 Agent 构建 assistant 消息时携带 reasoning_content
- agent.py 基类同时补上遗漏的 tool_calls 写入

Co-authored-by: Grey <grey@Greys-MacBook-Air.local>
2026-05-16 19:12:13 +08:00
..