Skip to content

Commit 3515b4f

Browse files
committed
omit todo tools for openai models
1 parent 4a7809f commit 3515b4f

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

packages/opencode/src/tool/registry.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,11 @@ export namespace ToolRegistry {
143143
if (t.id === "apply_patch") return usePatch
144144
if (t.id === "edit" || t.id === "write") return !usePatch
145145

146+
// omit todo tools for openai models
147+
if (t.id === "todoread" || t.id === "todowrite") {
148+
if (model.modelID.includes("gpt-")) return false
149+
}
150+
146151
return true
147152
})
148153
.map(async (t) => {

0 commit comments

Comments
 (0)