mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 21:37:11 +00:00
fix: post processors
This commit is contained in:
parent
2ab56e15a7
commit
7bf1c84989
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue