diff --git a/packages/ui/src/main/flow/READ_NO_REPLY_AUTO_REMINDER/boss-operation.ts b/packages/ui/src/main/flow/READ_NO_REPLY_AUTO_REMINDER/boss-operation.ts index 3781895..0c76eb8 100644 --- a/packages/ui/src/main/flow/READ_NO_REPLY_AUTO_REMINDER/boss-operation.ts +++ b/packages/ui/src/main/flow/READ_NO_REPLY_AUTO_REMINDER/boss-operation.ts @@ -204,6 +204,7 @@ export const sendGptContent = async (page: Page, chatRecords) => { try { const rawMarkdownText = res?.message?.content textToSend = JSON.parse(rawMarkdownText.replace(/^```json/m, '').replace(/```$/m, ''))?.response + textToSend = textToSend?.replace(/。$/, '') if (!textToSend) { throw new Error(`empty content. ${err?.message} ${res?.message?.content}`) }