Browse Source

Merge pull request #2193 from 6vision/fix_tool

Default close tool plugin.
master
zhayujie GitHub 3 months ago
parent
commit
6937673472
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      plugins/tool/tool.py

+ 4
- 2
plugins/tool/tool.py View File

@@ -22,11 +22,13 @@ class Tool(Plugin):
def __init__(self):
super().__init__()
self.handlers[Event.ON_HANDLE_CONTEXT] = self.on_handle_context

self.app = self._reset_app()

if not self.tool_config.get("tools"):
logger.warn("[tool] init failed, ignore ")
raise Exception("config.json not found")
logger.info("[tool] inited")


def get_help_text(self, verbose=False, **kwargs):
help_text = "这是一个能让chatgpt联网,搜索,数字运算的插件,将赋予强大且丰富的扩展能力。"
trigger_prefix = conf().get("plugin_trigger_prefix", "$")


Loading…
Cancel
Save