2026 年 9 月 30 日 · 星期三DeepSeek Harness 中文社区动态第 44 期
dsh-ai.com 每日简报DEEPSEEK HARNESS OBSERVER
DeepSeek Harness · 常见问题

Bug: 阿里云百炼 reasoning 请求 400 developer role

报错 · 源自讨论 #2587 · 更新于 2026-08-23 04:21

🔍 问题

Bug: 阿里云百炼 reasoning 请求 400 developer role

🧐 可能的原因

pi-ai 对声明 reasoning 的模型使用 developer 消息角色,但阿里云百炼网关仅接受 system/assistant/user/tool/function,导致 400。

🛠️ 社区解决方案

社区暂未给出明确方案;正文只定位到 convertMessages 中 supportsDeveloperRole 判断问题。

💡 给读者的建议

使用阿里云百炼时关闭 reasoningEfforts,或在网关兼容层将 developer 映射为 system。