mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 23:14:31 +00:00
fix(issue-39839): address tool-call extra params parsing for kimi anthropic-messages
This commit is contained in:
committed by
Peter Steinberger
parent
6dadfaa18c
commit
76e4b8277f
@@ -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";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user