mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-22 02:04:22 +01:00
tweak: reenable todowrite & todoread for qwen models (#2499)
This commit is contained in:
@@ -68,7 +68,7 @@ export namespace ToolRegistry {
|
|||||||
|
|
||||||
export async function enabled(
|
export async function enabled(
|
||||||
_providerID: string,
|
_providerID: string,
|
||||||
modelID: string,
|
_modelID: string,
|
||||||
agent: Agent.Info,
|
agent: Agent.Info,
|
||||||
): Promise<Record<string, boolean>> {
|
): Promise<Record<string, boolean>> {
|
||||||
const result: Record<string, boolean> = {}
|
const result: Record<string, boolean> = {}
|
||||||
@@ -86,11 +86,6 @@ export namespace ToolRegistry {
|
|||||||
result["webfetch"] = false
|
result["webfetch"] = false
|
||||||
}
|
}
|
||||||
|
|
||||||
if (modelID.toLowerCase().includes("qwen")) {
|
|
||||||
result["todowrite"] = false
|
|
||||||
result["todoread"] = false
|
|
||||||
}
|
|
||||||
|
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user