fix: parse kimi tagged tool calls (#60051)

* fix: parse kimi tagged tool calls

* fix: parse kimi tagged tool calls (#60051)

* fix: parse kimi tagged tool calls (#60051)
This commit is contained in:
Ayaan Zaidi
2026-04-03 09:39:19 +05:30
committed by GitHub
parent 98137f7f80
commit d5ea5f27ac
4 changed files with 395 additions and 0 deletions

View File

@@ -2,6 +2,7 @@ import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
import { createProviderApiKeyAuthMethod } from "openclaw/plugin-sdk/provider-auth-api-key";
import { applyKimiCodeConfig, KIMI_CODING_MODEL_REF } from "./onboard.js";
import { buildKimiCodingProvider } from "./provider-catalog.js";
import { createKimiToolCallMarkupWrapper } from "./stream.js";
const PLUGIN_ID = "kimi";
const PROVIDER_ID = "kimi";
@@ -85,6 +86,7 @@ export default definePluginEntry({
openAiPayloadNormalizationMode: "moonshot-thinking",
preserveAnthropicThinkingSignatures: false,
},
wrapStreamFn: (ctx) => createKimiToolCallMarkupWrapper(ctx.streamFn),
});
},
});