minor change

This commit is contained in:
goldfishh
2023-03-30 23:58:04 +08:00
parent 461777cad3
commit bf02a59aec
2 changed files with 4 additions and 3 deletions

View File

@@ -88,9 +88,10 @@ class Tool(Plugin):
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

View File

@@ -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