Skip to content

Commit

Permalink
Merge pull request #2237 from 6vision/fix_role
Browse files Browse the repository at this point in the history
Optimize log information printing
  • Loading branch information
6vision authored Aug 17, 2024
2 parents 7e724b3 + da81f05 commit f495213
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/role/role.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ def on_handle_context(self, e_context: EventContext):
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[:]
Expand Down

0 comments on commit f495213

Please sign in to comment.