ContextArticle
Claude 的 edit 工具是围绕“搜索并替换”(search-and-replace)机制构建的,而 OpenAI 的 Codex 则改用了 apply_patch 机制,并且 OpenAI 曾公开谈到过,他们专门训练模型以便更好地使用这个 apply_patch 工具。
作者将 Anthropic 的“搜索并替换”式 edit 工具与 OpenAI 为 Codex 采用的 apply_patch 方式进行了对比,并指出 OpenAI 曾谈到过有意训练模型使用自家的这套补丁机制。 ✦ AI 生成 · 平台预翻
Simon Willison · Simon Willison's Weblog · 2026-07-04 · English original →
Claude 的 edit 工具用的是搜索并替换(search and replace)。OpenAI 的 Codex 用的则是 apply_patch 机制,OpenAI 过去也谈到过,他们的模型是如何被训练来有效使用这个工具的。
Claude's edit tool uses search and replace. OpenAI's Codex uses an apply_patch mechanism instead, and OpenAI have talked in the past about how their models are trained to use that tool effectively.阅读原文 ↗合理引用摘录 · 中文为平台译文