mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-24 06:45:22 +00:00
cleanup
This commit is contained in:
@@ -138,8 +138,7 @@ export namespace ToolRegistry {
|
||||
}
|
||||
|
||||
// use apply tool in same format as codex
|
||||
const usePatch = model.modelID.includes("gpt") && !model.modelID.includes("oss")
|
||||
// && model.modelID !== "gpt-5" << TODO: gpt-5 needs special instructions
|
||||
const usePatch = model.modelID.includes("gpt-5") && !model.modelID.includes("oss")
|
||||
if (t.id === "apply_patch") return usePatch
|
||||
if (t.id === "edit" || t.id === "write") return !usePatch
|
||||
|
||||
|
||||
Reference in New Issue
Block a user