Browse Source

Merge pull request #2237 from 6vision/fix_role

Optimize log information printing
master
vision GitHub 3 months ago
parent
commit
f495213b2c
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      plugins/role/role.py

+ 2
- 2
plugins/role/role.py View File

@@ -99,8 +99,8 @@ class Role(Plugin):
if e_context["context"].type != ContextType.TEXT: if e_context["context"].type != ContextType.TEXT:
return return
btype = Bridge().get_bot_type("chat") 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 return
bot = Bridge().get_bot("chat") bot = Bridge().get_bot("chat")
content = e_context["context"].content[:] content = e_context["context"].content[:]


Loading…
Cancel
Save