mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-21 02:22:40 +00:00
disable todo tools for qwen models to improve compatibility
This commit is contained in:
parent
cadc5982f1
commit
5cc44c872e
1 changed files with 6 additions and 1 deletions
|
|
@ -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,6 +86,11 @@ export namespace ToolRegistry {
|
|||
result["webfetch"] = false
|
||||
}
|
||||
|
||||
if (modelID.includes("qwen")) {
|
||||
result["todowrite"] = false
|
||||
result["todoread"] = false
|
||||
}
|
||||
|
||||
return result
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue