mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-21 03:15:11 +00:00
exclude write tool too
This commit is contained in:
@@ -141,7 +141,7 @@ export namespace ToolRegistry {
|
||||
const usePatch = model.modelID.includes("gpt") && !model.modelID.includes("oss")
|
||||
// && model.modelID !== "gpt-5" << TODO: gpt-5 needs special instructions
|
||||
if (t.id === "apply_patch") return usePatch
|
||||
if (t.id === "edit") return !usePatch
|
||||
if (t.id === "edit" || t.id === "write") return !usePatch
|
||||
|
||||
return true
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user