🔍 问题
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。