omit todo tools for openai models

This commit is contained in:
Aiden Cline
2026-01-19 01:06:26 -06:00
parent 4a7809f600
commit 3515b4ff7d

View File

@@ -143,6 +143,11 @@ export namespace ToolRegistry {
if (t.id === "apply_patch") return usePatch
if (t.id === "edit" || t.id === "write") return !usePatch
// omit todo tools for openai models
if (t.id === "todoread" || t.id === "todowrite") {
if (model.modelID.includes("gpt-")) return false
}
return true
})
.map(async (t) => {