From c91791ad215d604766c929897078a753aa0f4db6 Mon Sep 17 00:00:00 2001 From: ikechan8370 Date: Thu, 25 May 2023 22:33:08 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20claude=E7=A9=BA@?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/chat.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/chat.js b/apps/chat.js index f4c54f5..09572f6 100644 --- a/apps/chat.js +++ b/apps/chat.js @@ -1790,9 +1790,11 @@ export class chatgpt extends plugin { if (Config.slackClaudeEnableGlobalPreset && (useCast?.slack || Config.slackClaudeGlobalPreset)) { // 先发送设定 let prompt = (useCast?.slack || Config.slackClaudeGlobalPreset) + let emotion = await AzureTTS.getEmotionPrompt(e) + if (emotion) { + prompt = prompt + '\n' + emotion + } await client.sendMessage(prompt, e) - // 处理可能由情绪参数导致的设定超限问题 - await client.sendMessage(await AzureTTS.getEmotionPrompt(e), e) logger.info('claudeFirst:', prompt) } }