fix: post processors

This commit is contained in:
ikechan8370 2025-02-19 13:22:53 +08:00
parent 2ab56e15a7
commit 7bf1c84989

View file

@ -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
}
}
}