diff --git a/core/config/shouldAutoEnableSystemMessageTools.ts b/core/config/shouldAutoEnableSystemMessageTools.ts index bdebaab1c..480b14ae8 100644 --- a/core/config/shouldAutoEnableSystemMessageTools.ts +++ b/core/config/shouldAutoEnableSystemMessageTools.ts @@ -21,9 +21,12 @@ import { ModelDescription } from "../index.d"; export function shouldAutoEnableSystemMessageTools( model: ModelDescription, ): boolean | undefined { - // Auto-enable for OpenRouter, but exclude Claude models which have good native tool calling + // Auto-enable for OpenRouter, but exclude Claude/KimiK2 models which have good native tool calling if (model.provider === "openrouter") { - return !model.model.toLowerCase().includes("claude"); + return ( + !model.model.toLowerCase().includes("claude") && + !model.model.toLowerCase().includes("kimi-k2") + ); } // No auto-preference for all other providers - use manual setting