fix(issue-39839): address tool-call extra params parsing for kimi anthropic-messages

This commit is contained in:
GeekCheyun
2026-03-08 21:10:59 +08:00
committed by Peter Steinberger
parent 6dadfaa18c
commit 76e4b8277f
2 changed files with 43 additions and 0 deletions

View File

@@ -858,6 +858,15 @@ function normalizeKimiCodingToolChoice(toolChoice: unknown): unknown {
}
const choice = toolChoice as Record<string, unknown>;
if (choice.type === "auto") {
return "auto";
}
if (choice.type === "none") {
return "none";
}
if (choice.type === "required") {
return "required";
}
if (choice.type === "any") {
return "required";
}