tweak: add back todo list tools for openai models
This commit is contained in:
@@ -143,11 +143,6 @@ export namespace ToolRegistry {
|
|||||||
if (t.id === "apply_patch") return usePatch
|
if (t.id === "apply_patch") return usePatch
|
||||||
if (t.id === "edit" || t.id === "write") 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
|
return true
|
||||||
})
|
})
|
||||||
.map(async (t) => {
|
.map(async (t) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user