Skip to content

Commit bf02a59

Browse files
committed
minor change
1 parent 461777c commit bf02a59

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

plugins/tool/tool.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,10 @@ def on_handle_context(self, e_context: EventContext):
8888
logger.exception(e)
8989
logger.error(str(e))
9090

91-
_reply = "请你随机用一种聊天风格,提醒用户:这个问题你无法处理"
91+
e_context['context'].content = "这个问题tool插件暂时无法处理"
9292
reply.type = ReplyType.ERROR
93-
e_context.action = EventAction.BREAK
93+
e_context.action = EventAction.CONTINUE
94+
return
9495

9596
reply.content = _reply
9697
e_context['reply'] = reply

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ wechaty_puppet>=0.4.23
1414
chardet>=5.1.0
1515
SpeechRecognition
1616
tiktoken>=0.3.2
17-
chatgpt_tool_hub>=0.2.2
17+
chatgpt_tool_hub>=0.2.3

0 commit comments

Comments
 (0)