Skip to content

Commit

Permalink
fix: xh设定
Browse files Browse the repository at this point in the history
  • Loading branch information
ikechan8370 committed Feb 1, 2024
1 parent 8cc7105 commit 3899400
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apps/prompts.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@ export class help extends plugin {
Custom: 'sydney',
claude: 'slackClaudeGlobalPreset',
qwen: 'promptPrefixOverride',
gemini: 'geminiPrompt'
gemini: 'geminiPrompt',
xh: 'xhPrompt'
}

if (keyMap[use]) {
Expand All @@ -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 {
Expand Down

0 comments on commit 3899400

Please sign in to comment.