From 380f7929e3c1624512cc3967dd91390c7bf86126 Mon Sep 17 00:00:00 2001 From: Sun Tao <168447269+fengju0213@users.noreply.github.com> Date: Wed, 12 Mar 2025 17:31:31 +0800 Subject: [PATCH 1/2] Update run_deepseek_zh.py Remove content related to multimodality. --- owl/run_deepseek_zh.py | 34 +--------------------------------- 1 file changed, 1 insertion(+), 33 deletions(-) diff --git a/owl/run_deepseek_zh.py b/owl/run_deepseek_zh.py index a268843..8a71a89 100644 --- a/owl/run_deepseek_zh.py +++ b/owl/run_deepseek_zh.py @@ -23,8 +23,6 @@ from dotenv import load_dotenv from camel.models import ModelFactory from camel.toolkits import ( - CodeExecutionToolkit, - ExcelToolkit, SearchToolkit, FileWriteToolkit, ) @@ -62,40 +60,12 @@ def construct_society(question: str) -> OwlRolePlaying: model_type=ModelType.DEEPSEEK_CHAT, model_config_dict={"temperature": 0}, ), - "web": ModelFactory.create( - model_platform=ModelPlatformType.DEEPSEEK, - model_type=ModelType.DEEPSEEK_CHAT, - model_config_dict={"temperature": 0}, - ), - "planning": ModelFactory.create( - model_platform=ModelPlatformType.DEEPSEEK, - model_type=ModelType.DEEPSEEK_CHAT, - model_config_dict={"temperature": 0}, - ), - "video": ModelFactory.create( - model_platform=ModelPlatformType.DEEPSEEK, - model_type=ModelType.DEEPSEEK_CHAT, - model_config_dict={"temperature": 0}, - ), - "image": ModelFactory.create( - model_platform=ModelPlatformType.DEEPSEEK, - model_type=ModelType.DEEPSEEK_CHAT, - model_config_dict={"temperature": 0}, - ), - "document": ModelFactory.create( - model_platform=ModelPlatformType.DEEPSEEK, - model_type=ModelType.DEEPSEEK_CHAT, - model_config_dict={"temperature": 0}, - ), } # Configure toolkits tools = [ - *CodeExecutionToolkit(sandbox="subprocess", verbose=True).get_tools(), SearchToolkit().search_duckduckgo, SearchToolkit().search_wiki, - *ExcelToolkit().get_tools(), - *DocumentProcessingToolkit(model=models["document"]).get_tools(), *FileWriteToolkit(output_dir="./").get_tools(), ] @@ -126,9 +96,7 @@ def main(): r"""Main function to run the OWL system with an example question.""" # Example research question question = ( - "请分析GitHub上CAMEL-AI项目的最新统计数据。找出该项目的星标数量、" - "贡献者数量和最近的活跃度。然后,创建一个简单的Excel表格来展示这些数据," - "并生成一个柱状图来可视化这些指标。最后,总结CAMEL项目的受欢迎程度和发展趋势。" + "搜索OWL项目最近的新闻并生成一篇报告,最后保存到本地。" ) # Construct and run the society From 09f7e031e71b9e29e8ab50d10da047d9c595789c Mon Sep 17 00:00:00 2001 From: Sun Tao <168447269+fengju0213@users.noreply.github.com> Date: Wed, 12 Mar 2025 20:15:35 +0800 Subject: [PATCH 2/2] Update run_deepseek_zh.py --- owl/run_deepseek_zh.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/owl/run_deepseek_zh.py b/owl/run_deepseek_zh.py index 8a71a89..52b4c34 100644 --- a/owl/run_deepseek_zh.py +++ b/owl/run_deepseek_zh.py @@ -23,8 +23,10 @@ from dotenv import load_dotenv from camel.models import ModelFactory from camel.toolkits import ( + ExcelToolkit, SearchToolkit, FileWriteToolkit, + CodeExecutionToolkit, ) from camel.types import ModelPlatformType, ModelType @@ -64,8 +66,10 @@ def construct_society(question: str) -> OwlRolePlaying: # Configure toolkits tools = [ + *CodeExecutionToolkit(sandbox="subprocess", verbose=True).get_tools(), SearchToolkit().search_duckduckgo, SearchToolkit().search_wiki, + *ExcelToolkit().get_tools(), *FileWriteToolkit(output_dir="./").get_tools(), ]