PulseAugur
实时 16:54:04
English(EN) Anthropic Structured Generation broken with $ref when strict=true

Anthropic API错误导致结构化生成输出矛盾

Anthropic的消息API中存在一个错误,特别是在使用结构化生成并设置`tools[].strict = true`时,会导致模型输出矛盾信息。当工具的`input_schema`使用`"$ref"`引用子模式时,约束解码器可能会产生与同一工具调用中模型自身推理相冲突的输出,且没有任何错误指示。用户提供了一个GitHub存储库来重现该问题,并建议将子模式内联作为修复方法,同时建议因上下文损坏而退款给受影响的客户。 AI

影响 此错误可能导致依赖Anthropic结构化生成的应用程序输出不可靠,潜在地影响数据完整性和用户信任。

排序理由 关于商业API中特定功能的错误报告。

在 r/Anthropic 阅读 →

AI 生成摘要 · Google Gemini · 来自 1 个来源。 我们如何撰写摘要 →

Anthropic API错误导致结构化生成输出矛盾

报道来源 [1]

  1. r/Anthropic TIER_1 English(EN) · /u/Nearby_Yam286 ·

    Anthropic Structured Generation 在 strict=true 时因 $ref 而中断

    <!-- SC_OFF --><div class="md"><p>Anthropic's Messages API, <code>tools[].strict = true</code>. When a tool's <code>input_schema</code> puts a subschema behind <code>{&quot;$ref&quot;: &quot;#/$defs/…&quot;}</code>, the constrained decoder emits values that contradict the model's…