Skip to content

Commit f495213

Browse files
authored
Merge pull request #2237 from 6vision/fix_role
Optimize log information printing
2 parents 7e724b3 + da81f05 commit f495213

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/role/role.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ def on_handle_context(self, e_context: EventContext):
9999
if e_context["context"].type != ContextType.TEXT:
100100
return
101101
btype = Bridge().get_bot_type("chat")
102-
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]:
103-
logger.warn(f'不支持的bot: {btype}')
102+
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]:
103+
logger.debug(f'不支持的bot: {btype}')
104104
return
105105
bot = Bridge().get_bot("chat")
106106
content = e_context["context"].content[:]

0 commit comments

Comments
 (0)