Sfoglia il codice sorgente

tweak: reenable todowrite & todoread for qwen models (#2499)

Aiden Cline 5 mesi fa
parent
commit
1cea8b9e77
1 ha cambiato i file con 1 aggiunte e 6 eliminazioni
  1. 1 6
      packages/opencode/src/tool/registry.ts

+ 1 - 6
packages/opencode/src/tool/registry.ts

@@ -68,7 +68,7 @@ export namespace ToolRegistry {
 
   export async function enabled(
     _providerID: string,
-    modelID: string,
+    _modelID: string,
     agent: Agent.Info,
   ): Promise<Record<string, boolean>> {
     const result: Record<string, boolean> = {}
@@ -86,11 +86,6 @@ export namespace ToolRegistry {
       result["webfetch"] = false
     }
 
-    if (modelID.toLowerCase().includes("qwen")) {
-      result["todowrite"] = false
-      result["todoread"] = false
-    }
-
     return result
   }