mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 21:37:11 +00:00
feat: 修改配置文件格式避免频繁panic;降低api模式重试次数;优化帮助显示;支持必应新增的三种模式切换
This commit is contained in:
parent
a45ae14a5c
commit
873deda49d
10 changed files with 156 additions and 172 deletions
|
|
@ -54,7 +54,7 @@ export class ChatgptManagement extends plugin {
|
|||
},
|
||||
{
|
||||
reg: '^#chatgpt切换(必应|Bing)$',
|
||||
fnc: 'useReversedBingSolution',
|
||||
fnc: 'useBingSolution',
|
||||
permission: 'master'
|
||||
},
|
||||
{
|
||||
|
|
@ -157,8 +157,9 @@ export class ChatgptManagement extends plugin {
|
|||
}
|
||||
|
||||
async useReversedAPIBasedSolution (e) {
|
||||
await redis.set('CHATGPT:USE', 'apiReverse')
|
||||
await this.reply('【暂时不可用,请关注仓库更新和群公告】已切换到基于第三方Reversed CompletionAPI的解决方案,如果已经对话过建议执行`#结束对话`避免引起404错误')
|
||||
await this.reply('API2已废弃,处于不可用状态,不会为你切换')
|
||||
// await redis.set('CHATGPT:USE', 'apiReverse')
|
||||
// await this.reply('【暂时不可用,请关注仓库更新和群公告】已切换到基于第三方Reversed CompletionAPI的解决方案,如果已经对话过建议执行`#结束对话`避免引起404错误')
|
||||
}
|
||||
|
||||
async useReversedAPIBasedSolution2 (e) {
|
||||
|
|
@ -171,7 +172,7 @@ export class ChatgptManagement extends plugin {
|
|||
}
|
||||
}
|
||||
|
||||
async useReversedBingSolution (e) {
|
||||
async useBingSolution (e) {
|
||||
let use = await redis.get('CHATGPT:USE')
|
||||
if (use !== 'bing') {
|
||||
await redis.set('CHATGPT:USE', 'bing')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue