From 5acd7cc023fc74daa605afd5b493168c598f4259 Mon Sep 17 00:00:00 2001 From: hanhan258 <96119846+hanhan258@users.noreply.github.com> Date: Sun, 21 Jan 2024 20:07:53 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E4=BF=AE=E5=A4=8Dqwen=E6=98=AFgem?= =?UTF-8?q?ini=EF=BC=8C=E5=A2=9E=E5=8A=A0=E5=8F=8C=E5=AD=90=E6=98=9F?= =?UTF-8?q?=E3=80=81=E6=99=BA=E8=B0=B1=E7=BB=93=E6=9D=9F(=E5=85=A8?= =?UTF-8?q?=E9=83=A8)=E5=AF=B9=E8=AF=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/chat.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/chat.js b/apps/chat.js index 5742189..d575d67 100644 --- a/apps/chat.js +++ b/apps/chat.js @@ -107,8 +107,8 @@ try { let version = Config.version let proxy = getProxy() -const originalValues = ['星火', '通义千问', '克劳德', '克劳德2', '必应', 'api', 'API', 'api3', 'API3', 'glm', '巴德'] -const correspondingValues = ['xh', 'qwen', 'claude', 'claude2', 'bing', 'api', 'api', 'api3', 'api3', 'chatglm', 'bard'] +const originalValues = ['星火', '通义千问', '克劳德', '克劳德2', '必应', 'api', 'API', 'api3', 'API3', 'glm', '巴德', '双子星', '双子座', '智谱'] +const correspondingValues = ['xh', 'qwen', 'claude', 'claude2', 'bing', 'api', 'api', 'api3', 'api3', 'chatglm', 'bard', 'gemini', 'gemini', 'chatglm4'] /** * 每个对话保留的时长。单个对话内ai是保留上下文的。超时后销毁对话,再次对话创建新的对话。 * 单位:秒 @@ -228,11 +228,11 @@ export class chatgpt extends plugin { permission: 'master' }, { - reg: '^#(chatgpt|星火|通义千问|克劳德|克劳德2|必应|api|API|api3|API3|glm|巴德)?(结束|新开|摧毁|毁灭|完结)对话([sS]*)', + reg: `^#?(${originalValues.join('|')})?(结束|新开|摧毁|毁灭|完结)对话([sS]*)$`, fnc: 'destroyConversations' }, { - reg: '^#(chatgpt|星火|通义千问|克劳德|克劳德2|必应|api|API|api3|API3|glm|巴德)?(结束|新开|摧毁|毁灭|完结)全部对话$', + reg: `^#?(${originalValues.join('|')})?(结束|新开|摧毁|毁灭|完结)全部对话$`, fnc: 'endAllConversations', permission: 'master' }, @@ -1481,7 +1481,7 @@ export class chatgpt extends plugin { } async qwen (e) { - return await this.otherMode(e, 'gemini') + return await this.otherMode(e, 'qwen') } async glm4 (e) {