Skip to content

Commit 5cc44c8

Browse files
thdxropencode
authored andcommitted
disable todo tools for qwen models to improve compatibility
1 parent cadc598 commit 5cc44c8

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

packages/opencode/src/tool/registry.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export namespace ToolRegistry {
6868

6969
export async function enabled(
7070
_providerID: string,
71-
_modelID: string,
71+
modelID: string,
7272
agent: Agent.Info,
7373
): Promise<Record<string, boolean>> {
7474
const result: Record<string, boolean> = {}
@@ -86,6 +86,11 @@ export namespace ToolRegistry {
8686
result["webfetch"] = false
8787
}
8888

89+
if (modelID.includes("qwen")) {
90+
result["todowrite"] = false
91+
result["todoread"] = false
92+
}
93+
8994
return result
9095
}
9196

0 commit comments

Comments
 (0)