错误信息:messages: text content blocks must be non-empty
问题:当 Claude 只返回 tool_use 而没有文本内容时,Alma 把 assistant 消息的 content 设置成了空字符串 "",导致 Anthropic API 拒绝请求。
问题消息结构: { "role": "assistant", "content": "", ← 应该省略或设为 null "tool_calls": [...] }
具体request body已经上传,使用的一个第三方的claude model。这个bug偶尔出现,偶尔没有。
alma_empty_content_request.json
9.1 KB• Text

Please authenticate to join the conversation.
In Review
Feature Request
2 months ago

Travis Cao
Get notified by email when there are changes.
In Review
Feature Request
2 months ago

Travis Cao
Get notified by email when there are changes.