Sun Tao commited on
Commit
427a34e
·
1 Parent(s): 037cb58

Update run_deepseek_zh.py

Browse files

Remove content related to multimodality.

Files changed (1) hide show
  1. owl/run_deepseek_zh.py +1 -33
owl/run_deepseek_zh.py CHANGED
@@ -23,8 +23,6 @@ from dotenv import load_dotenv
23
 
24
  from camel.models import ModelFactory
25
  from camel.toolkits import (
26
- CodeExecutionToolkit,
27
- ExcelToolkit,
28
  SearchToolkit,
29
  FileWriteToolkit,
30
  )
@@ -62,40 +60,12 @@ def construct_society(question: str) -> OwlRolePlaying:
62
  model_type=ModelType.DEEPSEEK_CHAT,
63
  model_config_dict={"temperature": 0},
64
  ),
65
- "web": ModelFactory.create(
66
- model_platform=ModelPlatformType.DEEPSEEK,
67
- model_type=ModelType.DEEPSEEK_CHAT,
68
- model_config_dict={"temperature": 0},
69
- ),
70
- "planning": ModelFactory.create(
71
- model_platform=ModelPlatformType.DEEPSEEK,
72
- model_type=ModelType.DEEPSEEK_CHAT,
73
- model_config_dict={"temperature": 0},
74
- ),
75
- "video": ModelFactory.create(
76
- model_platform=ModelPlatformType.DEEPSEEK,
77
- model_type=ModelType.DEEPSEEK_CHAT,
78
- model_config_dict={"temperature": 0},
79
- ),
80
- "image": ModelFactory.create(
81
- model_platform=ModelPlatformType.DEEPSEEK,
82
- model_type=ModelType.DEEPSEEK_CHAT,
83
- model_config_dict={"temperature": 0},
84
- ),
85
- "document": ModelFactory.create(
86
- model_platform=ModelPlatformType.DEEPSEEK,
87
- model_type=ModelType.DEEPSEEK_CHAT,
88
- model_config_dict={"temperature": 0},
89
- ),
90
  }
91
 
92
  # Configure toolkits
93
  tools = [
94
- *CodeExecutionToolkit(sandbox="subprocess", verbose=True).get_tools(),
95
  SearchToolkit().search_duckduckgo,
96
  SearchToolkit().search_wiki,
97
- *ExcelToolkit().get_tools(),
98
- *DocumentProcessingToolkit(model=models["document"]).get_tools(),
99
  *FileWriteToolkit(output_dir="./").get_tools(),
100
  ]
101
 
@@ -126,9 +96,7 @@ def main():
126
  r"""Main function to run the OWL system with an example question."""
127
  # Example research question
128
  question = (
129
- "请分析GitHub上CAMEL-AI项目的最新统计数据。找出该项目的星标数量、"
130
- "贡献者数量和最近的活跃度。然后,创建一个简单的Excel表格来展示这些数据,"
131
- "并生成一个柱状图来可视化这些指标。最后,总结CAMEL项目的受欢迎程度和发展趋势。"
132
  )
133
 
134
  # Construct and run the society
 
23
 
24
  from camel.models import ModelFactory
25
  from camel.toolkits import (
 
 
26
  SearchToolkit,
27
  FileWriteToolkit,
28
  )
 
60
  model_type=ModelType.DEEPSEEK_CHAT,
61
  model_config_dict={"temperature": 0},
62
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
63
  }
64
 
65
  # Configure toolkits
66
  tools = [
 
67
  SearchToolkit().search_duckduckgo,
68
  SearchToolkit().search_wiki,
 
 
69
  *FileWriteToolkit(output_dir="./").get_tools(),
70
  ]
71
 
 
96
  r"""Main function to run the OWL system with an example question."""
97
  # Example research question
98
  question = (
99
+ "搜索OWL项目最近的新闻并生成一篇报告,最后保存到本地。"
 
 
100
  )
101
 
102
  # Construct and run the society