Repository navigation
Replies: 1 comment
|
这条转换在 pi-ai 里,不在本仓;你的版本也太旧了。
你的 应急:新开会话,或从历史里去掉那条 reasoning-only 的 assistant 消息;坏消息写进历史后,这个路由上的重试都会带上它。 我读的是 master,没跑 Ark 的 /responses。 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Note: issue creation is restricted in this repository, so I'm posting here.
[Bug] Ark Agent Plan /responses returns 400 "missing input.content.text" after a reasoning-only assistant turn
环境
现象
某个回合模型只产出 reasoning、没有正文之后,该会话在此路由上的后续每一轮请求都失败:
坏消息一旦写进历史就无法自愈,会话此后永久不可用(客户端回退到默认模型)。
Request id 示例:0217945522527542add8b472a5fbe1ec0e05874620a4ba09d03a3
服务端最小复现
POST /responses,input 中放一条只有 reasoning 的 assistant 消息:
对照:以下形状全部 200
猜测
convertResponsesMessages 在回放 thinking block 时解析 thinkingSignature;
当该 assistant 回合没有 text/toolCall 时,产出的 input item 只带 reasoning,
被 Ark 判为非法的 message content。
也可能是同一会话内切换 provider 后,把外部 provider 的 thinkingSignature 回放到了本路由。
期望
assistant 消息的 content 不应只含 reasoning。建议三选一:
影响面:所有把 OpenAI Responses 协议接到严格校验的国产端点上

(火山方舟 Agent Plan 已确认)都会中招。
All reactions