Skip to content

armgit / camel

Public Imported from GitHub
0

🐫 CAMEL: The first and the best multi-agent framework. Finding the Scaling Law of Agents. https://www.camel-ai.org

fix: replace __dict__ with as_dict() in model_config (#804)

maoquan83afebba85a4
diff --git a/examples/workforce/multiple_single_agents.py b/examples/workforce/multiple_single_agents.py
index f6a38491e..bb7e0a3ca 100644
--- a/examples/workforce/multiple_single_agents.py
+++ b/examples/workforce/multiple_single_agents.py
@@ -35,7 +35,7 @@ def main():
model_config_dict = ChatGPTConfig(
tools=function_list,
temperature=0.0,
- ).__dict__
+ ).as_dict()
model = ModelFactory.create(
model_platform=ModelPlatformType.OPENAI,
diff --git a/examples/workforce/role_playing_with_agents.py b/examples/workforce/role_playing_with_agents.py
index d76211e12..4292fe6c3 100644
--- a/examples/workforce/role_playing_with_agents.py
+++ b/examples/workforce/role_playing_with_agents.py
@@ -60,7 +60,7 @@ def main():
model=ModelFactory.create(
model_platform=model_platform,
model_type=model_type,
- model_config_dict=assistant_model_config.__dict__,
+ model_config_dict=assistant_model_config.as_dict(),
),
tools=function_list,
)
@@ -68,7 +68,7 @@ def main():
model=ModelFactory.create(
model_platform=model_platform,
model_type=model_type,
- model_config_dict=user_model_config.__dict__,
+ model_config_dict=user_model_config.as_dict(),
),
)
research_rp_worker_node = RolePlayingNode(