🐛 fix: deepseek interleaved thinking (#10550)

fix
This commit is contained in:
Arvin Xu
2025-12-02 15:19:31 +08:00
committed by GitHub
parent 96784b68b5
commit 73f3066b11
2 changed files with 5 additions and 0 deletions

View File

@@ -66,6 +66,7 @@ export class MessageCleanupProcessor extends BaseProcessor {
content: message.content,
role: message.role,
...(message.tool_calls && { tool_calls: message.tool_calls }),
...(message.reasoning && { reasoning: message.reasoning }),
};
}

View File

@@ -243,6 +243,10 @@ describe('contextEngineering', () => {
type: 'text',
},
],
reasoning: {
content: 'I need to calculate the answer to life, universe, and everything.',
signature: 'thinking_process',
},
role: 'assistant',
},
]);