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

feat: Support Mistral medium (#2354)

Wendong-Fan8d7405f25c39
diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml
index c96605a11..83dd8feb7 100644
--- a/.github/ISSUE_TEMPLATE/bug_report.yml
+++ b/.github/ISSUE_TEMPLATE/bug_report.yml
@@ -26,7 +26,7 @@ body:
attributes:
label: What version of camel are you using?
description: Run command `python3 -c 'print(__import__("camel").__version__)'` in your shell and paste the output here.
- placeholder: E.g., 0.2.55
+ placeholder: E.g., 0.2.56
validations:
required: true
diff --git a/camel/__init__.py b/camel/__init__.py
index e29ad292e..840399d63 100644
--- a/camel/__init__.py
+++ b/camel/__init__.py
@@ -14,7 +14,7 @@
from camel.logger import disable_logging, enable_logging, set_log_level
-__version__ = '0.2.55'
+__version__ = '0.2.56'
__all__ = [
'__version__',
diff --git a/camel/types/enums.py b/camel/types/enums.py
index ed2303c98..8a8389597 100644
--- a/camel/types/enums.py
+++ b/camel/types/enums.py
@@ -196,6 +196,7 @@ class ModelType(UnifiedModelType, Enum):
MISTRAL_MIXTRAL_8x22B = "open-mixtral-8x22b"
MISTRAL_NEMO = "open-mistral-nemo"
MISTRAL_PIXTRAL_12B = "pixtral-12b-2409"
+ MISTRAL_MEDIUM_3 = "mistral-medium-latest"
# Reka models
REKA_CORE = "reka-core"
@@ -596,6 +597,7 @@ class ModelType(UnifiedModelType, Enum):
ModelType.MISTRAL_PIXTRAL_12B,
ModelType.MISTRAL_8B,
ModelType.MISTRAL_3B,
+ ModelType.MISTRAL_MEDIUM_3,
}
@property
@@ -1104,6 +1106,7 @@ class ModelType(UnifiedModelType, Enum):
ModelType.NETMIND_DEEPSEEK_R1,
ModelType.NETMIND_DEEPSEEK_V3,
ModelType.NOVITA_DEEPSEEK_V3_0324,
+ ModelType.MISTRAL_MEDIUM_3,
}:
return 128_000
elif self in {
diff --git a/docs/conf.py b/docs/conf.py
index cba6b26d6..79ee37152 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -27,7 +27,7 @@ sys.path.insert(0, os.path.abspath('..'))
project = 'CAMEL'
copyright = '2024, CAMEL-AI.org'
author = 'CAMEL-AI.org'
-release = '0.2.55'
+release = '0.2.56'
html_favicon = (
'https://raw.githubusercontent.com/camel-ai/camel/master/misc/favicon.png'
diff --git a/docs/key_modules/loaders.md b/docs/key_modules/loaders.md
index 069271035..37ef94325 100644
--- a/docs/key_modules/loaders.md
+++ b/docs/key_modules/loaders.md
@@ -340,14 +340,14 @@ response = jina_reader.read_content("https://docs.camel-ai.org/")
print(response)
```
```markdown
->>>Welcome to CAMEL’s documentation! — CAMEL 0.2.55 documentation
+>>>Welcome to CAMEL’s documentation! — CAMEL 0.2.56 documentation
===============
[Skip to main content](https://docs.camel-ai.org/#main-content)
Back to top Ctrl+K
- [![Image 1](https://raw.githubusercontent.com/camel-ai/camel/master/misc/logo_light.png) ![Image 2](https://raw.githubusercontent.com/camel-ai/camel/master/misc/logo_light.png)CAMEL 0.2.55](https://docs.camel-ai.org/#)
+ [![Image 1](https://raw.githubusercontent.com/camel-ai/camel/master/misc/logo_light.png) ![Image 2](https://raw.githubusercontent.com/camel-ai/camel/master/misc/logo_light.png)CAMEL 0.2.56](https://docs.camel-ai.org/#)
Search Ctrl+K
diff --git a/examples/models/mistral_model_example.py b/examples/models/mistral_model_example.py
index e30097a22..c8912063f 100644
--- a/examples/models/mistral_model_example.py
+++ b/examples/models/mistral_model_example.py
@@ -75,3 +75,30 @@ and the word "CAMEL" written in purple capital letters to the right of the
camel.
===============================================================================
'''
+
+
+model = ModelFactory.create(
+ model_platform=ModelPlatformType.MISTRAL,
+ model_type=ModelType.MISTRAL_MEDIUM_3,
+ 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, CAMEL AI! It's great to see an open-source community dedicated to the
+study of autonomous and communicative agents. I'm excited to learn more about
+your work and how I can assist you. How can I help you today?
+===============================================================================
+"""
diff --git a/pyproject.toml b/pyproject.toml
index a34859dd3..2d453bc63 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
[project]
name = "camel-ai"
-version = "0.2.55"
+version = "0.2.56"
description = "Communicative Agents for AI Society Study"
authors = [{ name = "CAMEL-AI.org" }]
requires-python = ">=3.10,<3.13"
diff --git a/test/models/test_mistral_model.py b/test/models/test_mistral_model.py
index 5893cfb1f..fd413ae56 100644
--- a/test/models/test_mistral_model.py
+++ b/test/models/test_mistral_model.py
@@ -33,6 +33,7 @@ from camel.utils import OpenAITokenCounter
ModelType.MISTRAL_CODESTRAL,
ModelType.MISTRAL_CODESTRAL_MAMBA,
ModelType.MISTRAL_PIXTRAL_12B,
+ ModelType.MISTRAL_MEDIUM_3,
],
)
def test_mistral_model(model_type):
diff --git a/uv.lock b/uv.lock
index 31c6ddbaf..e6e88c5c9 100644
--- a/uv.lock
+++ b/uv.lock
@@ -555,7 +555,7 @@ wheels = [
[[package]]
name = "camel-ai"
-version = "0.2.55"
+version = "0.2.56"
source = { editable = "." }
dependencies = [
{ name = "colorama" },