Sfoglia il codice sorgente

minor change

master
goldfishh 1 anno fa
parent
commit
bf02a59aec
2 ha cambiato i file con 4 aggiunte e 3 eliminazioni
  1. +3
    -2
      plugins/tool/tool.py
  2. +1
    -1
      requirements.txt

+ 3
- 2
plugins/tool/tool.py Vedi 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


+ 1
- 1
requirements.txt Vedi 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

Loading…
Annulla
Salva