Skip to content

Commit 8021853

Browse files
committed
fix: disable system message tools for kimi k2
1 parent 4b51607 commit 8021853

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

core/config/shouldAutoEnableSystemMessageTools.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,12 @@ import { ModelDescription } from "../index.d";
2121
export function shouldAutoEnableSystemMessageTools(
2222
model: ModelDescription,
2323
): boolean | undefined {
24-
// Auto-enable for OpenRouter, but exclude Claude models which have good native tool calling
24+
// Auto-enable for OpenRouter, but exclude Claude/KimiK2 models which have good native tool calling
2525
if (model.provider === "openrouter") {
26-
return !model.model.toLowerCase().includes("claude");
26+
return (
27+
!model.model.toLowerCase().includes("claude") &&
28+
!model.model.toLowerCase().includes("kimi-k2")
29+
);
2730
}
2831

2932
// No auto-preference for all other providers - use manual setting

0 commit comments

Comments
 (0)