🐫 CAMEL: The first and the best multi-agent framework. Finding the Scaling Law of Agents. https://www.camel-ai.org
Python agentai-societiesartificial-intelligencecommunicative-aicooperative-aideep-learninglarge-language-modelsmulti-agent-systemsnatural-language-processing
chore: rename ernie model naming
Wendong37dfc8e747bb
diff --git a/camel/types/enums.py b/camel/types/enums.pyindex a5dae6b81..5f2ebe06a 100644--- a/camel/types/enums.py+++ b/camel/types/enums.py@@ -388,14 +388,14 @@ class ModelType(UnifiedModelType, Enum):WATSONX_MISTRAL_LARGE = "mistralai/mistral-large"# Qianfan models- QIANFAN_ERNIE_X1_TURBO_32K = "ernie-x1-turbo-32k"- QIANFAN_ERNIE_X1_32K = "ernie-x1-32k"- QIANFAN_ERNIE_X1_32K_PREVIEW = "ernie-x1-32k-preview"- QIANFAN_ERNIE_4_5_TURBO_128K = "ernie-4.5-turbo-128k"- QIANFAN_ERNIE_4_5_TURBO_32K = "ernie-4.5-turbo-32k"- QIANFAN_DEEPSEEK_V3 = "deepseek-v3"- QIANFAN_DEEPSEEK_R1 = "deepseek-r1"- QIANFAN_QWEN3_235B_A22B = "qwen3-235b-a22b"+ ERNIE_X1_TURBO_32K = "ernie-x1-turbo-32k"+ ERNIE_X1_32K = "ernie-x1-32k"+ ERNIE_X1_32K_PREVIEW = "ernie-x1-32k-preview"+ ERNIE_4_5_TURBO_128K = "ernie-4.5-turbo-128k"+ ERNIE_4_5_TURBO_32K = "ernie-4.5-turbo-32k"+ DEEPSEEK_V3 = "deepseek-v3"+ DEEPSEEK_R1 = "deepseek-r1"+ QWEN3_235B_A22B = "qwen3-235b-a22b"# Crynux modelsCRYNUX_DEEPSEEK_R1_DISTILL_QWEN_1_5B = (@@ -882,14 +882,14 @@ class ModelType(UnifiedModelType, Enum):@propertydef is_qianfan(self) -> bool:return self in {- ModelType.QIANFAN_ERNIE_X1_TURBO_32K,- ModelType.QIANFAN_ERNIE_X1_32K,- ModelType.QIANFAN_ERNIE_X1_32K_PREVIEW,- ModelType.QIANFAN_ERNIE_4_5_TURBO_128K,- ModelType.QIANFAN_ERNIE_4_5_TURBO_32K,- ModelType.QIANFAN_DEEPSEEK_V3,- ModelType.QIANFAN_DEEPSEEK_R1,- ModelType.QIANFAN_QWEN3_235B_A22B,+ ModelType.ERNIE_X1_TURBO_32K,+ ModelType.ERNIE_X1_32K,+ ModelType.ERNIE_X1_32K_PREVIEW,+ ModelType.ERNIE_4_5_TURBO_128K,+ ModelType.ERNIE_4_5_TURBO_32K,+ ModelType.DEEPSEEK_V3,+ ModelType.DEEPSEEK_R1,+ ModelType.QWEN3_235B_A22B,}@property@@ -1063,11 +1063,11 @@ class ModelType(UnifiedModelType, Enum):ModelType.CRYNUX_QWEN_2_5_7B_INSTRUCT,ModelType.CRYNUX_NOUS_HERMES_3_LLAMA_3_1_8B,ModelType.CRYNUX_NOUS_HERMES_3_LLAMA_3_2_3B,- ModelType.QIANFAN_ERNIE_X1_TURBO_32K,- ModelType.QIANFAN_ERNIE_X1_32K,- ModelType.QIANFAN_ERNIE_X1_32K_PREVIEW,- ModelType.QIANFAN_ERNIE_4_5_TURBO_32K,- ModelType.QIANFAN_QWEN3_235B_A22B,+ ModelType.ERNIE_X1_TURBO_32K,+ ModelType.ERNIE_X1_32K,+ ModelType.ERNIE_X1_32K_PREVIEW,+ ModelType.ERNIE_4_5_TURBO_32K,+ ModelType.QWEN3_235B_A22B,}:return 32_000elif self in {@@ -1148,7 +1148,7 @@ class ModelType(UnifiedModelType, Enum):return 65_535elif self in {ModelType.NOVITA_QWEN_2_5_V1_72B,- ModelType.QIANFAN_DEEPSEEK_R1,+ ModelType.DEEPSEEK_R1,}:return 96_000elif self in {@@ -1203,8 +1203,8 @@ class ModelType(UnifiedModelType, Enum):ModelType.NETMIND_DEEPSEEK_V3,ModelType.NOVITA_DEEPSEEK_V3_0324,ModelType.MISTRAL_MEDIUM_3,- ModelType.QIANFAN_ERNIE_4_5_TURBO_128K,- ModelType.QIANFAN_DEEPSEEK_V3,+ ModelType.ERNIE_4_5_TURBO_128K,+ ModelType.DEEPSEEK_V3,}:return 128_000elif self in {diff --git a/examples/models/qianfan_model_example.py b/examples/models/qianfan_model_example.pyindex fb64e6e5b..a5646c429 100644--- a/examples/models/qianfan_model_example.py+++ b/examples/models/qianfan_model_example.py@@ -24,7 +24,7 @@ from camel.utils import print_text_animated# Create ERNIE 4.5 model configurationmodel = ModelFactory.create(model_platform=ModelPlatformType.QIANFAN,- model_type=ModelType.QIANFAN_ERNIE_4_5_TURBO_128K,+ model_type=ModelType.ERNIE_4_5_TURBO_128K,model_config_dict=QianfanConfig(temperature=0.2).as_dict(),)@@ -34,8 +34,13 @@ sys_msg = "You are a helpful assistant."# Set agentcamel_agent = ChatAgent(system_message=sys_msg, model=model)-user_msg = """Say hi to CAMEL AI, one open-source community dedicated to the- study of autonomous and communicative agents."""+user_msg = """Say hi to CAMEL-AI, one open-source community believe that+scaling up multi-agent systems is a pathway toward AGI. It's mission is:+Finding the Scaling Laws of Agents. Intelligence emerges from diversity, not a+single perfect principle. Multi-agent systems naturally follow "divide and+conquer" approaches, breaking down complex problems across multiple+specialized agents. Since 2023, they have been building the first multi-agent+framework CAMEL"""# Get response informationresponse = camel_agent.step(user_msg)@@ -43,10 +48,17 @@ print(response.msgs[0].content)'''===============================================================================-Hi, CAMEL AI! It's great to connect with an open-source community focused on-the fascinating field of autonomous and communicative agents. Your work in-advancing this area is truly valuable, and I'm excited to see the innovative-solutions and insights you'll bring to the table. Keep up the amazing work!+Hi, CAMEL-AI! It's fantastic to learn about your open - source community and+your ambitious mission of finding the scaling laws of agents. The idea that+intelligence emerges from diversity rather than a single perfect principle is+quite intriguing and aligns with the complex nature of real - world problems.++The "divide and conquer" approach of multi - agent systems to tackle complex+problems by distributing tasks among specialized agents makes a lot of sense.+It's impressive that you've been working on the CAMEL framework since 2023.+I'm curious, what are some of the key challenges you've faced so far in+building this multi - agent framework, and how do you plan to overcome them as+you continue your journey toward understanding the scaling laws of agents?==============================================================================='''diff --git a/test/models/test_qianfan_model.py b/test/models/test_qianfan_model.pyindex 679cf629b..dcc6b4e31 100644--- a/test/models/test_qianfan_model.py+++ b/test/models/test_qianfan_model.py@@ -51,7 +51,7 @@ def test_qianfan_model(model_type: ModelType):@pytest.mark.model_backenddef test_qianfan_model_unexpected_argument():- model_type = ModelType.QIANFAN_ERNIE_X1_TURBO_32K+ model_type = ModelType.ERNIE_X1_TURBO_32Kmodel_config_dict = {"model_path": "ernie-x1-turbo-32k"}@@ -69,6 +69,6 @@ def test_qianfan_model_unexpected_argument():@pytest.mark.model_backenddef test_qianfan_model_stream_property():- model = QianfanModel(ModelType.QIANFAN_ERNIE_X1_TURBO_32K)+ model = QianfanModel(ModelType.ERNIE_X1_TURBO_32K)assert model.stream is False