OpenRouter 官方博客·· 2 天前AI 评分36
如何让任意 LLM 输出结构化结果:JSON Schema、工具调用还是决策模型
How to Get Structured Output from Any LLM: JSON Schema, Tool Calls, or a Decision Model
AI 导读
OpenRouter 用 24 条杂乱客服消息测试了 9 个支持结构化输出的模型,216 次回复中 209 次符合严格 schema,7 次失败全部来自同一个忽略 schema 的提供商;仅靠提示词要求 JSON 则有 18 次因代码围栏失败。
来源:OpenRouter 官方博客 · openrouter.ai