mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 21:37:11 +00:00
fix: 切换设定
This commit is contained in:
parent
5879e52acd
commit
9929d55bea
1 changed files with 3 additions and 3 deletions
|
|
@ -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]) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue