Browse Source

feat(tool.py): add new configuration options for think_depth, arxiv_summary, and morning_news_use_llm

master
lanvent 1 year ago
parent
commit
8528c9b262
2 changed files with 4 additions and 1 deletions
  1. +3
    -0
      plugins/tool/tool.py
  2. +1
    -1
      requirements-optional.txt

+ 3
- 0
plugins/tool/tool.py View File

@@ -157,6 +157,9 @@ class Tool(Plugin):
"morning_news_api_key": kwargs.get("morning_news_api_key", ""),
# for visual_dl tool
"cuda_device": kwargs.get("cuda_device", "cpu"),
"think_depth": kwargs.get("think_depth", 3),
"arxiv_summary": kwargs.get("arxiv_summary", True),
"morning_news_use_llm": kwargs.get("morning_news_use_llm", False),
}

def _filter_tool_list(self, tool_list: list):


+ 1
- 1
requirements-optional.txt View File

@@ -25,4 +25,4 @@ wechatpy
# chatgpt-tool-hub plugin

--extra-index-url https://pypi.python.org/simple
chatgpt_tool_hub>=0.4.1
chatgpt_tool_hub==0.4.3

Loading…
Cancel
Save