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'
if (use.toLowerCase() === 'bing') {
if (Config.toneStyle === 'Sydney') {
use = 'sydney'
if (Config.toneStyle === 'Custom') {
use = 'Custom'
}
}
const keyMap = {
api: 'promptPrefixOverride',
sydney: 'sydney'
Custom: 'sydney'
}
if (keyMap[use]) {