From 7bf1c8498914b9d4437521b44258fa9ff86fead9 Mon Sep 17 00:00:00 2001 From: ikechan8370 Date: Wed, 19 Feb 2025 13:22:53 +0800 Subject: [PATCH] fix: post processors --- utils/postprocessors/ReasonerProcessor.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/postprocessors/ReasonerProcessor.js b/utils/postprocessors/ReasonerProcessor.js index 411ef31..379afcf 100644 --- a/utils/postprocessors/ReasonerProcessor.js +++ b/utils/postprocessors/ReasonerProcessor.js @@ -19,10 +19,11 @@ export class ReasonerProcessor extends AbstractPostProcessor { * }>} */ async processInner (input) { + logger.debug('Running into ReasonerPostProcessor') const { text, thinkingText } = extractThinkingTextAndText(input.text) return { text, - thinking_text: input.thinking_text + thinkingText + thinking_text: (input.thinking_text ? input.thinking_text : '') + thinkingText } } }