File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,8 @@ const OPENAI_MODEL_APIS = new Set([
3939] ) ;
4040const OPENAI_PROVIDERS = new Set ( [ "openai" , "openai-codex" ] ) ;
4141const OPENAI_COMPAT_TURN_MERGE_EXCLUDED_PROVIDERS = new Set ( [ "openrouter" , "opencode" ] ) ;
42+ // Providers that use anthropic-messages API but cannot handle re-sent thinkingSignature blobs (#39798)
43+ const ANTHROPIC_API_SIGNATURE_EXCLUDED_PROVIDERS = new Set ( [ "kimi-coding" ] ) ;
4244
4345function isOpenAiApi ( modelApi ?: string | null ) : boolean {
4446 if ( ! modelApi ) {
@@ -123,8 +125,7 @@ export function resolveTranscriptPolicy(params: {
123125 ( ! isOpenAi && sanitizeToolCallIds ) || requiresOpenAiCompatibleToolIdSanitization ,
124126 toolCallIdMode,
125127 repairToolUseResultPairing,
126- // kimi-coding uses anthropic-messages API but cannot handle re-sent thinkingSignature blobs (#39798)
127- preserveSignatures : isAnthropic && provider !== "kimi-coding" ,
128+ preserveSignatures : isAnthropic && ! ANTHROPIC_API_SIGNATURE_EXCLUDED_PROVIDERS . has ( provider ) ,
128129 sanitizeThoughtSignatures : isOpenAi ? undefined : sanitizeThoughtSignatures ,
129130 sanitizeThinkingSignatures : false ,
130131 dropThinkingBlocks,
You can’t perform that action at this time.
0 commit comments