Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
goldfishh committed Mar 30, 2023
1 parent 461777c commit bf02a59
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions plugins/tool/tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ wechaty_puppet>=0.4.23
chardet>=5.1.0
SpeechRecognition
tiktoken>=0.3.2
chatgpt_tool_hub>=0.2.2
chatgpt_tool_hub>=0.2.3

0 comments on commit bf02a59

Please sign in to comment.