fix: 切换设定

This commit is contained in:
ikechan8370 2023-03-18 17:22:50 +08:00
parent 5879e52acd
commit 9929d55bea

View file

@ -111,13 +111,13 @@ export class help extends plugin {
} }
let use = await redis.get('CHATGPT:USE') || 'api' let use = await redis.get('CHATGPT:USE') || 'api'
if (use.toLowerCase() === 'bing') { if (use.toLowerCase() === 'bing') {
if (Config.toneStyle === 'Sydney') { if (Config.toneStyle === 'Custom') {
use = 'sydney' use = 'Custom'
} }
} }
const keyMap = { const keyMap = {
api: 'promptPrefixOverride', api: 'promptPrefixOverride',
sydney: 'sydney' Custom: 'sydney'
} }
if (keyMap[use]) { if (keyMap[use]) {