From 8021853ee447bb549fc29d02be93db6eb2185cf8 Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Wed, 20 Aug 2025 19:16:14 +0530 Subject: [PATCH] fix: disable system message tools for kimi k2 --- core/config/shouldAutoEnableSystemMessageTools.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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