transcript-policy: don't preserve thinking signatures for kimi-coding (#39798)
This commit is contained in:
committed by
Peter Steinberger
parent
e2c07f8a47
commit
2bf53c2cb6
@@ -122,6 +122,15 @@ describe("resolveTranscriptPolicy", () => {
|
||||
expect(policy.preserveSignatures).toBe(false);
|
||||
});
|
||||
|
||||
it("does not preserve signatures for kimi-coding provider (#39798)", () => {
|
||||
const policy = resolveTranscriptPolicy({
|
||||
provider: "kimi-coding",
|
||||
modelId: "k2p5",
|
||||
modelApi: "anthropic-messages",
|
||||
});
|
||||
expect(policy.preserveSignatures).toBe(false);
|
||||
});
|
||||
|
||||
it("enables turn-ordering and assistant-merge for strict OpenAI-compatible providers (#38962)", () => {
|
||||
const policy = resolveTranscriptPolicy({
|
||||
provider: "vllm",
|
||||
|
||||
@@ -123,7 +123,8 @@ export function resolveTranscriptPolicy(params: {
|
||||
(!isOpenAi && sanitizeToolCallIds) || requiresOpenAiCompatibleToolIdSanitization,
|
||||
toolCallIdMode,
|
||||
repairToolUseResultPairing,
|
||||
preserveSignatures: isAnthropic,
|
||||
// kimi-coding uses anthropic-messages API but cannot handle re-sent thinkingSignature blobs (#39798)
|
||||
preserveSignatures: isAnthropic && provider !== "kimi-coding",
|
||||
sanitizeThoughtSignatures: isOpenAi ? undefined : sanitizeThoughtSignatures,
|
||||
sanitizeThinkingSignatures: false,
|
||||
dropThinkingBlocks,
|
||||
|
||||
Reference in New Issue
Block a user