|
@@ -313,7 +313,7 @@ class Godcmd(Plugin): |
|
|
except Exception as e: |
|
|
except Exception as e: |
|
|
ok, result = False, "你没有设置私有GPT模型" |
|
|
ok, result = False, "你没有设置私有GPT模型" |
|
|
elif cmd == "reset": |
|
|
elif cmd == "reset": |
|
|
if bottype in [const.OPEN_AI, const.CHATGPT, const.CHATGPTONAZURE, const.LINKAI, const.BAIDU, const.XUNFEI, const.QWEN, const.GEMINI]: |
|
|
|
|
|
|
|
|
if bottype in [const.OPEN_AI, const.CHATGPT, const.CHATGPTONAZURE, const.LINKAI, const.BAIDU, const.XUNFEI, const.QWEN, const.GEMINI, const.ZHIPU_AI]: |
|
|
bot.sessions.clear_session(session_id) |
|
|
bot.sessions.clear_session(session_id) |
|
|
if Bridge().chat_bots.get(bottype): |
|
|
if Bridge().chat_bots.get(bottype): |
|
|
Bridge().chat_bots.get(bottype).sessions.clear_session(session_id) |
|
|
Bridge().chat_bots.get(bottype).sessions.clear_session(session_id) |
|
@@ -339,7 +339,7 @@ class Godcmd(Plugin): |
|
|
ok, result = True, "配置已重载" |
|
|
ok, result = True, "配置已重载" |
|
|
elif cmd == "resetall": |
|
|
elif cmd == "resetall": |
|
|
if bottype in [const.OPEN_AI, const.CHATGPT, const.CHATGPTONAZURE, const.LINKAI, |
|
|
if bottype in [const.OPEN_AI, const.CHATGPT, const.CHATGPTONAZURE, const.LINKAI, |
|
|
const.BAIDU, const.XUNFEI, const.QWEN, const.GEMINI]: |
|
|
|
|
|
|
|
|
const.BAIDU, const.XUNFEI, const.QWEN, const.GEMINI, const.ZHIPU_AI]: |
|
|
channel.cancel_all_session() |
|
|
channel.cancel_all_session() |
|
|
bot.sessions.clear_all_session() |
|
|
bot.sessions.clear_all_session() |
|
|
ok, result = True, "重置所有会话成功" |
|
|
ok, result = True, "重置所有会话成功" |
|
|