Changesets · Branches · Tags · Compare
| Changeset | 36ebc3ac99f4c02be3cfd4fe6979ea42969de7d754185b51ea99bdb69e34f1ca |
|---|---|
| Author | Patrick Erichsen <patrick.a.erichsen@gmail.com> · 2025-09-17 16:48 -07:00 |
| Committer | GitHub <noreply@github.com> · 2025-09-17 16:48 -07:00 |
| Parents | 4d2cde11634f |
2 files changed
modified core/llm/toolSupport.ts +1 −2
| @@ -374,9 +374,8 @@ | ||
| 374 | 374 | [/o[134]/], |
| 375 | 375 | [/deepseek/, /r1|reasoner/], |
| 376 | 376 | [/gemini/, /2\.5/, /pro/], |
| 377 | - [/gpt/, /4/], | |
| 378 | 377 | [/gpt-5/], |
| 379 | - [/claude/, /sonnet/, /3\.5|3\.7|3-5|3-7|-4/], | |
| 378 | + [/claude/, /sonnet/, /3\.7|3-7|-4/], | |
| 380 | 379 | [/claude/, /opus/, /-4/], |
| 381 | 380 | ]; |
| 382 | 381 | for (const combo of recs) { |
modified core/tools/index.ts +2 −1
| @@ -1,4 +1,5 @@ | ||
| 1 | 1 | import { ConfigDependentToolParams, Tool } from ".."; |
| 2 | +import { isRecommendedAgentModel } from "../llm/toolSupport"; | |
| 2 | 3 | import * as toolDefinitions from "./definitions"; |
| 3 | 4 | |
| 4 | 5 | // I'm writing these as functions because we've messed up 3 TIMES by pushing to const, causing duplicate tool definitions on subsequent config loads. |
| @@ -36,7 +37,7 @@ | ||
| 36 | 37 | ); |
| 37 | 38 | } |
| 38 | 39 | |
| 39 | - if (modelName?.includes("claude") || modelName?.includes("gpt-5")) { | |
| 40 | + if (modelName && isRecommendedAgentModel(modelName)) { | |
| 40 | 41 | tools.push(toolDefinitions.multiEditTool); |
| 41 | 42 | } else { |
| 42 | 43 | tools.push(toolDefinitions.editFileTool); |