From da81f05804e95f97fa3d1515e5e63338613ee7c4 Mon Sep 17 00:00:00 2001 From: 6vision Date: Wed, 14 Aug 2024 23:03:57 +0800 Subject: [PATCH] Optimize log information printing --- plugins/role/role.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/role/role.py b/plugins/role/role.py index 0f514d7..7c7b106 100644 --- a/plugins/role/role.py +++ b/plugins/role/role.py @@ -99,8 +99,8 @@ class Role(Plugin): if e_context["context"].type != ContextType.TEXT: return btype = Bridge().get_bot_type("chat") - if btype not in [const.OPEN_AI, const.CHATGPT, const.CHATGPTONAZURE, const.QWEN_DASHSCOPE, const.XUNFEI, const.BAIDU, const.ZHIPU_AI, const.MOONSHOT, const.MiniMax]: - logger.warn(f'不支持的bot: {btype}') + if btype not in [const.OPEN_AI, const.CHATGPT, const.CHATGPTONAZURE, const.QWEN_DASHSCOPE, const.XUNFEI, const.BAIDU, const.ZHIPU_AI, const.MOONSHOT, const.MiniMax, const.LINKAI]: + logger.debug(f'不支持的bot: {btype}') return bot = Bridge().get_bot("chat") content = e_context["context"].content[:]