From 8528c9b262f54b484b29f1a1864e982faf0aaeea Mon Sep 17 00:00:00 2001 From: lanvent Date: Fri, 28 Apr 2023 00:24:07 +0800 Subject: [PATCH] feat(tool.py): add new configuration options for think_depth, arxiv_summary, and morning_news_use_llm --- plugins/tool/tool.py | 3 +++ requirements-optional.txt | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/tool/tool.py b/plugins/tool/tool.py index 930ea3c..9f1cf25 100644 --- a/plugins/tool/tool.py +++ b/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): diff --git a/requirements-optional.txt b/requirements-optional.txt index 580e850..c248689 100644 --- a/requirements-optional.txt +++ b/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 \ No newline at end of file +chatgpt_tool_hub==0.4.3 \ No newline at end of file