为什么像 REST 这样的 AI 编码工具不受欢迎?

3作者: sshadmand3 个月前
难道只有我这样觉得吗?AI 编码工具似乎倾向于生成 RPC 风格的端点和 POST 方法(即使只需要 GET 方法也能实现),而不是遵循 RESTful 规范? 考虑到这些模型已经如此先进,我很好奇这是否是故意的。AI 是否认为严格的 REST 规范并非一个普遍适用的标准?或者这仅仅是出于令牌效率或其他原因? 我知道可以通过更好的提示来引导输出,但我很好奇这种几乎总是出现的行为背后是否存在真正的原因。
查看原文
Is it just me, or do AI coding tools tend to generate RPC-style endpoints and POST methods (even when GET is clearly all that is needed) instead of following RESTful conventions?<p>Given how advanced these models are, I&#x27;m wondering if this is intentional. Is AI saying it has determined that strict REST isn’t a practical standard all around? Or is it just a byproduct of token efficiency or....?<p>I know I can steer the output with better prompting, but I&#x27;m curious whether there&#x27;s a real underlying reason for this almost all-the-time output.