From bf02a59aec83531e68ce22427baf309f8e6c658d Mon Sep 17 00:00:00 2001 From: goldfishh Date: Thu, 30 Mar 2023 23:58:04 +0800 Subject: [PATCH] minor change --- plugins/tool/tool.py | 5 +++-- requirements.txt | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/tool/tool.py b/plugins/tool/tool.py index 8761407e9..ee5b359c1 100644 --- a/plugins/tool/tool.py +++ b/plugins/tool/tool.py @@ -88,9 +88,10 @@ def on_handle_context(self, e_context: EventContext): logger.exception(e) logger.error(str(e)) - _reply = "请你随机用一种聊天风格,提醒用户:这个问题你无法处理" + e_context['context'].content = "这个问题tool插件暂时无法处理" reply.type = ReplyType.ERROR - e_context.action = EventAction.BREAK + e_context.action = EventAction.CONTINUE + return reply.content = _reply e_context['reply'] = reply diff --git a/requirements.txt b/requirements.txt index a12b64709..fe6aebfc2 100644 --- a/requirements.txt +++ b/requirements.txt @@ -14,4 +14,4 @@ wechaty_puppet>=0.4.23 chardet>=5.1.0 SpeechRecognition tiktoken>=0.3.2 -chatgpt_tool_hub>=0.2.2 \ No newline at end of file +chatgpt_tool_hub>=0.2.3 \ No newline at end of file