mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-23 04:26:05 +00:00
tweak: add back todo list tools for openai models
This commit is contained in:
parent
301e74d953
commit
d9f0287d74
1 changed files with 0 additions and 5 deletions
|
|
@ -143,11 +143,6 @@ 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) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue