fix: Custom模式无效的问题;一些管理指令

This commit is contained in:
ikechan8370 2023-03-18 14:59:04 +08:00
parent d4f8b4318d
commit 1b4bc49612
3 changed files with 41 additions and 3 deletions

View file

@ -754,9 +754,9 @@ export class chatgpt extends plugin {
cookies = bingToken
}
let bingAIClient
if (Config.toneStyle === 'Sydney') {
if (Config.toneStyle === 'Sydney' || Config.toneStyle === 'Custom' ) {
const cacheOptions = {
namespace: 'Sydney',
namespace: Config.toneStyle,
store: new KeyvFile({ filename: 'cache.json' })
}
bingAIClient = new SydneyAIClient({