🐫 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
feat: Add Mistral Small 3.2 (#2733)
Sarthak Bhardwaj760043125674
diff --git a/camel/types/enums.py b/camel/types/enums.pyindex c19b35ed3..a5dae6b81 100644--- a/camel/types/enums.py+++ b/camel/types/enums.py@@ -209,6 +209,7 @@ class ModelType(UnifiedModelType, Enum):MISTRAL_PIXTRAL_12B = "pixtral-12b-2409"MISTRAL_MEDIUM_3 = "mistral-medium-latest"MAGISTRAL_MEDIUM = "magistral-medium-2506"+ MISTRAL_SMALL_3_2 = "mistral-small-2506"# Reka modelsREKA_CORE = "reka-core"@@ -646,6 +647,7 @@ class ModelType(UnifiedModelType, Enum):ModelType.MISTRAL_3B,ModelType.MISTRAL_MEDIUM_3,ModelType.MAGISTRAL_MEDIUM,+ ModelType.MISTRAL_SMALL_3_2,}@property@@ -1166,6 +1168,7 @@ class ModelType(UnifiedModelType, Enum):ModelType.MISTRAL_PIXTRAL_12B,ModelType.MISTRAL_8B,ModelType.MISTRAL_3B,+ ModelType.MISTRAL_SMALL_3_2,ModelType.QWEN_2_5_CODER_32B,ModelType.QWEN_2_5_VL_72B,ModelType.QWEN_2_5_72B,diff --git a/docs/mintlify/key_modules/models.mdx b/docs/mintlify/key_modules/models.mdxindex 871aa1728..81a7cba63 100644--- a/docs/mintlify/key_modules/models.mdx+++ b/docs/mintlify/key_modules/models.mdx@@ -38,7 +38,7 @@ CAMEL supports a wide range of models, including [OpenAI’s GPT series](https:/| :-------------- | :------------ || **OpenAI** | gpt-4.5-preview<br/>gpt-4o, gpt-4o-mini<br/>o1, o1-preview, o1-mini<br/>o3-mini, o3-pro<br/>gpt-4-turbo, gpt-4, gpt-3.5-turbo || **Azure OpenAI** | gpt-4o, gpt-4-turbo<br/>gpt-4, gpt-3.5-turbo |-| **Mistral AI** | mistral-large-latest, pixtral-12b-2409<br/>ministral-8b-latest, ministral-3b-latest<br/>open-mistral-nemo, codestral-latest<br/>open-mistral-7b, open-mixtral-8x7b<br/>open-mixtral-8x22b, open-codestral-mamba<br/>magistral-medium-2506 |+| **Mistral AI** | mistral-large-latest, pixtral-12b-2409<br/>ministral-8b-latest, ministral-3b-latest<br/>open-mistral-nemo, codestral-latest<br/>open-mistral-7b, open-mixtral-8x7b<br/>open-mixtral-8x22b, open-codestral-mamba<br/>magistral-medium-2506, mistral-small-2506 || **Moonshot** | moonshot-v1-8k<br/>moonshot-v1-32k<br/>moonshot-v1-128k || **Anthropic** | claude-2.1, claude-2.0, claude-instant-1.2<br/>claude-3-opus-latest, claude-3-sonnet-20240229, claude-3-haiku-20240307<br/>claude-3-5-sonnet-latest, claude-3-5-haiku-latest || **Gemini** | gemini-2.5-flash-preview-04-17, gemini-2.5-pro-preview-06-05<br/>gemini-2.0-flash, gemini-2.0-flash-exp, gemini-2.0-flash-thinking-exp<br/>gemini-2.0-pro-exp-02-05, gemini-2.0-flash-lite, gemini-2.0-flash-lite-preview-02-05<br/>gemini-1.5-flash, gemini-1.5-pro |diff --git a/examples/models/mistral_model_example.py b/examples/models/mistral_model_example.pyindex f9ef50b20..6972b2ff1 100644--- a/examples/models/mistral_model_example.py+++ b/examples/models/mistral_model_example.py@@ -128,3 +128,28 @@ study of autonomous and communicative agents. I'm excited to learn more aboutyour work and how I can assist you. How can I help you today?==============================================================================="""++model = ModelFactory.create(+ model_platform=ModelPlatformType.MISTRAL,+ model_type=ModelType.MISTRAL_SMALL_3_2,+ model_config_dict=MistralConfig(temperature=0.0).as_dict(),+)++# Define system message+sys_msg = "You are a helpful assistant."++# Set agent+camel_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."""++# Get response information+response = camel_agent.step(user_msg)+print(response.msgs[0].content)+"""+===============================================================================+Hello to CAMEL AI, an open-source community focused on the research of+autonomous and communicative agents!+===============================================================================+"""diff --git a/test/models/test_mistral_model.py b/test/models/test_mistral_model.pyindex cc4f6a310..edea810cf 100644--- a/test/models/test_mistral_model.py+++ b/test/models/test_mistral_model.py@@ -35,6 +35,7 @@ from camel.utils import OpenAITokenCounterModelType.MISTRAL_PIXTRAL_12B,ModelType.MISTRAL_MEDIUM_3,ModelType.MAGISTRAL_MEDIUM,+ ModelType.MISTRAL_SMALL_3_2,],)def test_mistral_model(model_type):