From 389940085a46b7e046dc0809956bae442151f578 Mon Sep 17 00:00:00 2001 From: ikechan8370 Date: Thu, 1 Feb 2024 22:51:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20xh=E8=AE=BE=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/prompts.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/prompts.js b/apps/prompts.js index a78e4d3..65c2524 100644 --- a/apps/prompts.js +++ b/apps/prompts.js @@ -159,7 +159,8 @@ export class help extends plugin { Custom: 'sydney', claude: 'slackClaudeGlobalPreset', qwen: 'promptPrefixOverride', - gemini: 'geminiPrompt' + gemini: 'geminiPrompt', + xh: 'xhPrompt' } if (keyMap[use]) { @@ -169,6 +170,9 @@ export class help extends plugin { } else { Config[keyMap[use]] = prompt.content } + if (use === 'xh') { + Config.xhPromptSerialize = false + } await redis.set(`CHATGPT:PROMPT_USE_${use}`, promptName) await e.reply(`你当前正在使用${use}模式,已将该模式设定应用为"${promptName}"。更该设定后建议结束对话以使设定更好生效`, true) } else {