mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 21:37:11 +00:00
fix: bug
This commit is contained in:
parent
41b339256c
commit
704b76c3e9
1 changed files with 6 additions and 2 deletions
|
|
@ -110,15 +110,19 @@ export class help extends plugin {
|
|||
}
|
||||
}
|
||||
let use = await redis.get('CHATGPT:USE') || 'api'
|
||||
if (use.toLowerCase() === 'bing') {
|
||||
if (Config.toneStyle === 'Sydney') {
|
||||
use = 'sydney'
|
||||
}
|
||||
}
|
||||
const keyMap = {
|
||||
api: 'promptPrefixOverride',
|
||||
sydney: 'sydney'
|
||||
}
|
||||
|
||||
await redis.set(`CHATGPT:PROMPT_USE_${use}`, promptName)
|
||||
|
||||
if (keyMap[use]) {
|
||||
Config[keyMap[use]] = prompt.content
|
||||
await redis.set(`CHATGPT:PROMPT_USE_${use}`, promptName)
|
||||
await e.reply(`你当前正在使用${use}模式,已将该模式设定应用为"${promptName}。更该设定后建议结束对话以使设定更好生效"`, true)
|
||||
} else {
|
||||
await e.reply(`你当前正在使用${use}模式,改模式不支持设定`, true)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue