mirror of
https://github.com/moltbot/moltbot.git
synced 2026-04-27 00:17:29 +00:00
fix: keep Kimi anthropic tool payloads native (#60391) (thanks @Eric-Guo)
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import type { StreamFn } from "@mariozechner/pi-agent-core";
|
||||
import { streamSimple } from "@mariozechner/pi-ai";
|
||||
import { createOpenAIAnthropicToolPayloadCompatibilityWrapper } from "openclaw/plugin-sdk/provider-stream";
|
||||
|
||||
const TOOL_CALLS_SECTION_BEGIN = "<|tool_calls_section_begin|>";
|
||||
const TOOL_CALLS_SECTION_END = "<|tool_calls_section_end|>";
|
||||
@@ -180,9 +179,3 @@ export function createKimiToolCallMarkupWrapper(baseStreamFn: StreamFn | undefin
|
||||
return wrapKimiTaggedToolCalls(maybeStream);
|
||||
};
|
||||
}
|
||||
|
||||
export function wrapKimiProviderStream(baseStreamFn: StreamFn | undefined): StreamFn {
|
||||
return createKimiToolCallMarkupWrapper(
|
||||
createOpenAIAnthropicToolPayloadCompatibilityWrapper(baseStreamFn),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user