瀏覽代碼

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

master
lanvent 1 年之前
父節點
當前提交
8528c9b262
共有 2 個文件被更改,包括 4 次插入1 次删除
  1. +3
    -0
      plugins/tool/tool.py
  2. +1
    -1
      requirements-optional.txt

+ 3
- 0
plugins/tool/tool.py 查看文件

@@ -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 查看文件

@@ -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…
取消
儲存