mirror of
https://github.com/jihe520/MathModelAgent.git
synced 2026-10-30 07:24:14 +08:00
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>