mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-18 06:17:06 +00:00
fix: xh设定
This commit is contained in:
parent
8cc7105f2d
commit
389940085a
1 changed files with 5 additions and 1 deletions
|
|
@ -159,7 +159,8 @@ export class help extends plugin {
|
||||||
Custom: 'sydney',
|
Custom: 'sydney',
|
||||||
claude: 'slackClaudeGlobalPreset',
|
claude: 'slackClaudeGlobalPreset',
|
||||||
qwen: 'promptPrefixOverride',
|
qwen: 'promptPrefixOverride',
|
||||||
gemini: 'geminiPrompt'
|
gemini: 'geminiPrompt',
|
||||||
|
xh: 'xhPrompt'
|
||||||
}
|
}
|
||||||
|
|
||||||
if (keyMap[use]) {
|
if (keyMap[use]) {
|
||||||
|
|
@ -169,6 +170,9 @@ export class help extends plugin {
|
||||||
} else {
|
} else {
|
||||||
Config[keyMap[use]] = prompt.content
|
Config[keyMap[use]] = prompt.content
|
||||||
}
|
}
|
||||||
|
if (use === 'xh') {
|
||||||
|
Config.xhPromptSerialize = false
|
||||||
|
}
|
||||||
await redis.set(`CHATGPT:PROMPT_USE_${use}`, promptName)
|
await redis.set(`CHATGPT:PROMPT_USE_${use}`, promptName)
|
||||||
await e.reply(`你当前正在使用${use}模式,已将该模式设定应用为"${promptName}"。更该设定后建议结束对话以使设定更好生效`, true)
|
await e.reply(`你当前正在使用${use}模式,已将该模式设定应用为"${promptName}"。更该设定后建议结束对话以使设定更好生效`, true)
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue