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 Qwen 3 in modelscope (#2294)

Wendong-Fan378940ca9ad8
diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml
index 4a5b5252e..f96fa51d3 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.49
+ placeholder: E.g., 0.2.50
validations:
required: true
diff --git a/camel/__init__.py b/camel/__init__.py
index dde3df9e4..570c3adfc 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.49'
+__version__ = '0.2.50'
__all__ = [
'__version__',
diff --git a/camel/configs/modelscope_config.py b/camel/configs/modelscope_config.py
index 18e2b5368..d87737a31 100644
--- a/camel/configs/modelscope_config.py
+++ b/camel/configs/modelscope_config.py
@@ -13,7 +13,7 @@
# ========= Copyright 2023-2024 @ CAMEL-AI.org. All Rights Reserved. =========
from __future__ import annotations
-from typing import Optional, Union
+from typing import Any, Dict, Optional, Union
from camel.configs.base_config import BaseConfig
@@ -45,6 +45,8 @@ class ModelScopeConfig(BaseConfig):
while higher values make it more diverse. (default: :obj:`0.3`)
stream (bool, optional): If True, enables streaming output.
(default: :obj:`None`)
+ extra_body (dict, optional): Extra body parameters to be passed to
+ the ModelScope API.
"""
tool_choice: Optional[Union[dict[str, str], str]] = None
@@ -52,6 +54,7 @@ class ModelScopeConfig(BaseConfig):
top_p: Optional[float] = None
temperature: Optional[float] = None
stream: Optional[bool] = None
+ extra_body: Optional[Dict[str, Any]] = None
MODELSCOPE_API_PARAMS = {
diff --git a/camel/models/modelscope_model.py b/camel/models/modelscope_model.py
index 727742228..bc7b3af4c 100644
--- a/camel/models/modelscope_model.py
+++ b/camel/models/modelscope_model.py
@@ -13,11 +13,19 @@
# ========= Copyright 2023-2024 @ CAMEL-AI.org. All Rights Reserved. =========
import os
-from typing import Any, Dict, Optional, Union
+import time
+from typing import Any, Dict, List, Optional, Union
+
+from openai import AsyncStream, Stream
from camel.configs import MODELSCOPE_API_PARAMS, ModelScopeConfig
+from camel.messages import OpenAIMessage
from camel.models.openai_compatible_model import OpenAICompatibleModel
-from camel.types import ModelType
+from camel.types import (
+ ChatCompletion,
+ ChatCompletionChunk,
+ ModelType,
+)
from camel.utils import (
BaseTokenCounter,
api_keys_required,
@@ -81,6 +89,171 @@ class ModelScopeModel(OpenAICompatibleModel):
timeout=timeout,
)
+ def _post_handle_response(
+ self, response: Union[ChatCompletion, Stream[ChatCompletionChunk]]
+ ) -> ChatCompletion:
+ r"""Handle reasoning content with <think> tags at the beginning."""
+ if not isinstance(response, Stream):
+ # Handle non-streaming response (existing logic)
+ if self.model_config_dict.get("extra_body", {}).get(
+ "enable_thinking", False
+ ):
+ reasoning_content = response.choices[
+ 0
+ ].message.reasoning_content # type: ignore[attr-defined]
+ combined_content = (
+ f"<think>\n{reasoning_content}\n</think>\n"
+ if reasoning_content
+ else ""
+ )
+ response_content = response.choices[0].message.content or ""
+ combined_content += response_content
+
+ # Construct a new ChatCompletion with combined content
+ return ChatCompletion.construct(
+ id=response.id,
+ choices=[
+ dict(
+ finish_reason=response.choices[0].finish_reason,
+ index=response.choices[0].index,
+ logprobs=response.choices[0].logprobs,
+ message=dict(
+ role=response.choices[0].message.role,
+ content=combined_content,
+ ),
+ )
+ ],
+ created=response.created,
+ model=response.model,
+ object="chat.completion",
+ system_fingerprint=response.system_fingerprint,
+ usage=response.usage,
+ )
+ else:
+ return response # Return original if no thinking enabled
+
+ # Handle streaming response
+ accumulated_reasoning = ""
+ accumulated_content = ""
+ final_chunk = None
+ usage_data = None # Initialize usage data
+ role = "assistant" # Default role
+
+ for chunk in response:
+ final_chunk = chunk # Keep track of the last chunk for metadata
+ if chunk.choices:
+ delta = chunk.choices[0].delta
+ if delta.role:
+ role = delta.role # Update role if provided
+ if (
+ hasattr(delta, 'reasoning_content')
+ and delta.reasoning_content
+ ):
+ accumulated_reasoning += delta.reasoning_content
+ if delta.content:
+ accumulated_content += delta.content
+
+ if hasattr(chunk, 'usage') and chunk.usage:
+ usage_data = chunk.usage
+
+ combined_content = (
+ f"<think>\n{accumulated_reasoning}\n</think>\n"
+ if accumulated_reasoning
+ else ""
+ ) + accumulated_content
+
+ # Construct the final ChatCompletion object from accumulated
+ # stream data
+ if final_chunk:
+ finish_reason = "stop" # Default finish reason
+ logprobs = None
+ if final_chunk.choices:
+ finish_reason = (
+ final_chunk.choices[0].finish_reason or finish_reason
+ )
+ if hasattr(final_chunk.choices[0], 'logprobs'):
+ logprobs = final_chunk.choices[0].logprobs
+
+ return ChatCompletion.construct(
+ # Use data from the final chunk or defaults
+ id=final_chunk.id
+ if hasattr(final_chunk, 'id')
+ else "streamed-completion",
+ choices=[
+ dict(
+ finish_reason=finish_reason,
+ index=0,
+ logprobs=logprobs,
+ message=dict(
+ role=role,
+ content=combined_content,
+ ),
+ )
+ ],
+ created=final_chunk.created
+ if hasattr(final_chunk, 'created')
+ else int(time.time()),
+ model=final_chunk.model
+ if hasattr(final_chunk, 'model')
+ else self.model_type,
+ object="chat.completion",
+ system_fingerprint=final_chunk.system_fingerprint
+ if hasattr(final_chunk, 'system_fingerprint')
+ else None,
+ usage=usage_data,
+ )
+ else:
+ # Handle cases where the stream was empty or invalid
+ return ChatCompletion.construct(
+ id="empty-stream",
+ choices=[
+ dict(
+ finish_reason="error",
+ index=0,
+ message=dict(role="assistant", content=""),
+ )
+ ],
+ created=int(time.time()),
+ model=self.model_type,
+ object="chat.completion",
+ usage=usage_data,
+ )
+
+ def _request_chat_completion(
+ self,
+ messages: List[OpenAIMessage],
+ tools: Optional[List[Dict[str, Any]]] = None,
+ ) -> Union[ChatCompletion, Stream[ChatCompletionChunk]]:
+ request_config = self.model_config_dict.copy()
+
+ if tools:
+ request_config["tools"] = tools
+
+ return self._post_handle_response(
+ self._client.chat.completions.create(
+ messages=messages,
+ model=self.model_type,
+ **request_config,
+ )
+ )
+
+ async def _arequest_chat_completion(
+ self,
+ messages: List[OpenAIMessage],
+ tools: Optional[List[Dict[str, Any]]] = None,
+ ) -> Union[ChatCompletion, AsyncStream[ChatCompletionChunk]]:
+ request_config = self.model_config_dict.copy()
+
+ if tools:
+ request_config["tools"] = tools
+
+ response = await self._async_client.chat.completions.create(
+ messages=messages,
+ model=self.model_type,
+ **request_config,
+ )
+ return self._post_handle_response(response)
+
def check_model_config(self):
r"""Check whether the model configuration contains any
unexpected arguments to ModelScope API.
diff --git a/camel/types/enums.py b/camel/types/enums.py
index 0389db1e3..8eda5fd04 100644
--- a/camel/types/enums.py
+++ b/camel/types/enums.py
@@ -275,57 +275,57 @@ class ModelType(UnifiedModelType, Enum):
"meta-llama/llama-4-maverick-17b-128e-instruct-fp8"
)
NOVITA_LLAMA_4_SCOUT_17B = "meta-llama/llama-4-scout-17b-16e-instruct"
- NOVITA_DEEPSEEK_V3_0324 = ("deepseek/deepseek-v3-0324",)
- NOVITA_QWEN_2_5_V1_72B = ("qwen/qwen2.5-vl-72b-instruct",)
- NOVITA_DEEPSEEK_V3_TURBO = ("deepseek/deepseek-v3-turbo",)
- NOVITA_DEEPSEEK_R1_TURBO = ("deepseek/deepseek-r1-turbo",)
- NOVITA_GEMMA_3_27B_IT = ("google/gemma-3-27b-it",)
- NOVITA_QWEN_32B = ("qwen/qwq-32b",)
- NOVITA_L3_8B_STHENO_V3_2 = ("Sao10K/L3-8B-Stheno-v3.2",)
- NOVITA_MYTHOMAX_L2_13B = ("gryphe/mythomax-l2-13b",)
+ NOVITA_DEEPSEEK_V3_0324 = "deepseek/deepseek-v3-0324"
+ NOVITA_QWEN_2_5_V1_72B = "qwen/qwen2.5-vl-72b-instruct"
+ NOVITA_DEEPSEEK_V3_TURBO = "deepseek/deepseek-v3-turbo"
+ NOVITA_DEEPSEEK_R1_TURBO = "deepseek/deepseek-r1-turbo"
+ NOVITA_GEMMA_3_27B_IT = "google/gemma-3-27b-it"
+ NOVITA_QWEN_32B = "qwen/qwq-32b"
+ NOVITA_L3_8B_STHENO_V3_2 = "Sao10K/L3-8B-Stheno-v3.2"
+ NOVITA_MYTHOMAX_L2_13B = "gryphe/mythomax-l2-13b"
NOVITA_DEEPSEEK_R1_DISTILL_LLAMA_8B = (
- "deepseek/deepseek-r1-distill-llama-8b",
+ "deepseek/deepseek-r1-distill-llama-8b"
)
- NOVITA_DEEPSEEK_V3 = ("deepseek/deepseek_v3",)
- NOVITA_LLAMA_3_1_8B = ("meta-llama/llama-3.1-8b-instruct",)
+ NOVITA_DEEPSEEK_V3 = "deepseek/deepseek_v3"
+ NOVITA_LLAMA_3_1_8B = "meta-llama/llama-3.1-8b-instruct"
NOVITA_DEEPSEEK_R1_DISTILL_QWEN_14B = (
- "deepseek/deepseek-r1-distill-qwen-14b",
+ "deepseek/deepseek-r1-distill-qwen-14b"
)
- NOVITA_LLAMA_3_3_70B = ("meta-llama/llama-3.3-70b-instruct",)
- NOVITA_QWEN_2_5_72B = ("qwen/qwen-2.5-72b-instruct",)
- NOVITA_MISTRAL_NEMO = ("mistralai/mistral-nemo",)
+ NOVITA_LLAMA_3_3_70B = "meta-llama/llama-3.3-70b-instruct"
+ NOVITA_QWEN_2_5_72B = "qwen/qwen-2.5-72b-instruct"
+ NOVITA_MISTRAL_NEMO = "mistralai/mistral-nemo"
NOVITA_DEEPSEEK_R1_DISTILL_QWEN_32B = (
- "deepseek/deepseek-r1-distill-qwen-32b",
+ "deepseek/deepseek-r1-distill-qwen-32b"
)
- NOVITA_LLAMA_3_8B = ("meta-llama/llama-3-8b-instruct",)
- NOVITA_WIZARDLM_2_8X22B = ("microsoft/wizardlm-2-8x22b",)
+ NOVITA_LLAMA_3_8B = "meta-llama/llama-3-8b-instruct"
+ NOVITA_WIZARDLM_2_8X22B = "microsoft/wizardlm-2-8x22b"
NOVITA_DEEPSEEK_R1_DISTILL_LLAMA_70B = (
- "deepseek/deepseek-r1-distill-llama-70b",
+ "deepseek/deepseek-r1-distill-llama-70b"
)
- NOVITA_LLAMA_3_1_70B = ("meta-llama/llama-3.1-70b-instruct",)
- NOVITA_GEMMA_2_9B_IT = ("google/gemma-2-9b-it",)
- NOVITA_MISTRAL_7B = ("mistralai/mistral-7b-instruct",)
- NOVITA_LLAMA_3_70B = ("meta-llama/llama-3-70b-instruct",)
- NOVITA_DEEPSEEK_R1 = ("deepseek/deepseek-r1",)
- NOVITA_HERMES_2_PRO_LLAMA_3_8B = ("nousresearch/hermes-2-pro-llama-3-8b",)
- NOVITA_L3_70B_EURYALE_V2_1 = ("sao10k/l3-70b-euryale-v2.1",)
+ NOVITA_LLAMA_3_1_70B = "meta-llama/llama-3.1-70b-instruct"
+ NOVITA_GEMMA_2_9B_IT = "google/gemma-2-9b-it"
+ NOVITA_MISTRAL_7B = "mistralai/mistral-7b-instruct"
+ NOVITA_LLAMA_3_70B = "meta-llama/llama-3-70b-instruct"
+ NOVITA_DEEPSEEK_R1 = "deepseek/deepseek-r1"
+ NOVITA_HERMES_2_PRO_LLAMA_3_8B = "nousresearch/hermes-2-pro-llama-3-8b"
+ NOVITA_L3_70B_EURYALE_V2_1 = "sao10k/l3-70b-euryale-v2.1"
NOVITA_DOLPHIN_MIXTRAL_8X22B = (
- "cognitivecomputations/dolphin-mixtral-8x22b",
+ "cognitivecomputations/dolphin-mixtral-8x22b"
)
- NOVITA_AIROBOROS_L2_70B = ("jondurbin/airoboros-l2-70b",)
- NOVITA_MIDNIGHT_ROSE_70B = ("sophosympatheia/midnight-rose-70b",)
- NOVITA_L3_8B_LUNARIS = ("sao10k/l3-8b-lunaris",)
- NOVITA_GLM_4_9B_0414 = ("thudm/glm-4-9b-0414",)
- NOVITA_GLM_Z1_9B_0414 = ("thudm/glm-z1-9b-0414",)
- NOVITA_GLM_Z1_32B_0414 = ("thudm/glm-z1-32b-0414",)
- NOVITA_GLM_4_32B_0414 = ("thudm/glm-4-32b-0414",)
- NOVITA_GLM_Z1_RUMINATION_32B_0414 = ("thudm/glm-z1-rumination-32b-0414",)
- NOVITA_QWEN_2_5_7B = ("qwen/qwen2.5-7b-instruct",)
- NOVITA_LLAMA_3_2_1B = ("meta-llama/llama-3.2-1b-instruct",)
- NOVITA_LLAMA_3_2_11B_VISION = ("meta-llama/llama-3.2-11b-vision-instruct",)
- NOVITA_LLAMA_3_2_3B = ("meta-llama/llama-3.2-3b-instruct",)
- NOVITA_LLAMA_3_1_8B_BF16 = ("meta-llama/llama-3.1-8b-instruct-bf16",)
- NOVITA_L31_70B_EURYALE_V2_2 = ("sao10k/l31-70b-euryale-v2.2",)
+ NOVITA_AIROBOROS_L2_70B = "jondurbin/airoboros-l2-70b"
+ NOVITA_MIDNIGHT_ROSE_70B = "sophosympatheia/midnight-rose-70b"
+ NOVITA_L3_8B_LUNARIS = "sao10k/l3-8b-lunaris"
+ NOVITA_GLM_4_9B_0414 = "thudm/glm-4-9b-0414"
+ NOVITA_GLM_Z1_9B_0414 = "thudm/glm-z1-9b-0414"
+ NOVITA_GLM_Z1_32B_0414 = "thudm/glm-z1-32b-0414"
+ NOVITA_GLM_4_32B_0414 = "thudm/glm-4-32b-0414"
+ NOVITA_GLM_Z1_RUMINATION_32B_0414 = "thudm/glm-z1-rumination-32b-0414"
+ NOVITA_QWEN_2_5_7B = "qwen/qwen2.5-7b-instruct"
+ NOVITA_LLAMA_3_2_1B = "meta-llama/llama-3.2-1b-instruct"
+ NOVITA_LLAMA_3_2_11B_VISION = "meta-llama/llama-3.2-11b-vision-instruct"
+ NOVITA_LLAMA_3_2_3B = "meta-llama/llama-3.2-3b-instruct"
+ NOVITA_LLAMA_3_1_8B_BF16 = "meta-llama/llama-3.1-8b-instruct-bf16"
+ NOVITA_L31_70B_EURYALE_V2_2 = "sao10k/l31-70b-euryale-v2.2"
# ModelScope models support tool calling
MODELSCOPE_QWEN_2_5_7B_INSTRUCT = "Qwen/Qwen2.5-7B-Instruct"
@@ -335,6 +335,8 @@ class ModelType(UnifiedModelType, Enum):
MODELSCOPE_QWEN_2_5_CODER_7B_INSTRUCT = "Qwen/Qwen2.5-Coder-7B-Instruct"
MODELSCOPE_QWEN_2_5_CODER_14B_INSTRUCT = "Qwen/Qwen2.5-Coder-14B-Instruct"
MODELSCOPE_QWEN_2_5_CODER_32B_INSTRUCT = "Qwen/Qwen2.5-Coder-32B-Instruct"
+ MODELSCOPE_QWEN_3_235B_A22B = "Qwen/Qwen3-235B-A22B"
+ MODELSCOPE_QWEN_3_32B = "Qwen/Qwen3-32B"
MODELSCOPE_QWQ_32B = "Qwen/QwQ-32B"
MODELSCOPE_QWQ_32B_PREVIEW = "Qwen/QwQ-32B-Preview"
MODELSCOPE_LLAMA_3_1_8B_INSTRUCT = (
@@ -722,6 +724,8 @@ class ModelType(UnifiedModelType, Enum):
ModelType.MODELSCOPE_QWEN_2_5_CODER_7B_INSTRUCT,
ModelType.MODELSCOPE_QWEN_2_5_CODER_14B_INSTRUCT,
ModelType.MODELSCOPE_QWEN_2_5_CODER_32B_INSTRUCT,
+ ModelType.MODELSCOPE_QWEN_3_235B_A22B,
+ ModelType.MODELSCOPE_QWEN_3_32B,
ModelType.MODELSCOPE_QWQ_32B,
ModelType.MODELSCOPE_QWQ_32B_PREVIEW,
ModelType.MODELSCOPE_LLAMA_3_1_8B_INSTRUCT,
@@ -952,6 +956,8 @@ class ModelType(UnifiedModelType, Enum):
ModelType.MODELSCOPE_QWEN_2_5_CODER_7B_INSTRUCT,
ModelType.MODELSCOPE_QWEN_2_5_CODER_14B_INSTRUCT,
ModelType.MODELSCOPE_QWEN_2_5_CODER_32B_INSTRUCT,
+ ModelType.MODELSCOPE_QWEN_3_235B_A22B,
+ ModelType.MODELSCOPE_QWEN_3_32B,
ModelType.MODELSCOPE_QWQ_32B,
ModelType.MODELSCOPE_QWQ_32B_PREVIEW,
ModelType.MODELSCOPE_LLAMA_3_1_8B_INSTRUCT,
diff --git a/docs/conf.py b/docs/conf.py
index 25826ac63..5d64b9e41 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.49'
+release = '0.2.50'
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 78345c690..380a011e8 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.49 documentation
+>>>Welcome to CAMEL’s documentation! — CAMEL 0.2.50 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.49](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.50](https://docs.camel-ai.org/#)
Search Ctrl+K
diff --git a/examples/models/modelscope_model_example.py b/examples/models/modelscope_model_example.py
index f0e344926..f9f77ad5e 100644
--- a/examples/models/modelscope_model_example.py
+++ b/examples/models/modelscope_model_example.py
@@ -53,3 +53,53 @@ msgs=[BaseMessage(role_name='Assistant', role_type=<RoleType.ASSISTANT: 'assista
The University of Oxford is approximately 928 years old in the year 2024.
==============================================================================
''' # noqa: E501
+
+model = ModelFactory.create(
+ model_platform=ModelPlatformType.MODELSCOPE,
+ model_type=ModelType.MODELSCOPE_QWEN_3_235B_A22B,
+ model_config_dict=ModelScopeConfig(
+ temperature=0.2,
+ stream=True,
+ extra_body={"enable_thinking": True, "thinking_budget": 10000},
+ ).as_dict(),
+)
+
+# Define system message
+sys_msg = "You are a helpful assistant."
+
+# Set agent
+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."""
+
+# Let agent step the message
+response = agent.step(user_msg)
+
+# Get response information
+print(response.msgs[0].content)
+
+
+'''
+==============================================================================
+<think>
+Okay, the user wants me to say hi to CAMEL AI, an open-source community focused on autonomous and communicative agents. Let me start by understanding what exactly they're asking for.
+
+First, I need to acknowledge the greeting request. The user might be part of this community or just introducing it to me. Either way, my response should be friendly and welcoming. Since CAMEL AI is about autonomous and communicative agents, I should mention their dedication to studying these areas. Maybe highlight collaboration and innovation since those are common in open-source communities.
+
+I should make sure to keep the tone positive and encouraging. Perhaps invite them to share more about their work or how others can get involved. That adds value beyond a simple greeting. Also, using emojis could make the message feel warmer and more approachable.
+
+Wait, do I know specific projects or achievements of CAMEL AI? The user didn't provide details, so I should keep it general but still relevant. Focus on the key aspects: open-source, autonomous agents, communication, community-driven. Avoid any technical jargon that might not be accurate without more info.
+
+Double-check if there's a standard way to greet such communities. Probably a straightforward welcome with enthusiasm. Make sure to offer assistance or ask if they need anything specific related to their work. That shows willingness to help further.
+
+Alright, structure the response: Greeting, acknowledgment of their mission, appreciation for their work, invitation to collaborate or share more, closing with positive emoji. Keep it concise but comprehensive enough.
+</think>
+Hello CAMEL AI! 🌟 It’s exciting to see an open-source community dedicated to advancing autonomous and communicative agents—pushing the boundaries of AI collaboration, adaptability, and real-world problem-solving. Whether you’re exploring multi-agent systems, LLMs, or decentralized intelligence, your work is paving the way for transformative innovations. 💡 How can we contribute or dive deeper into your projects? Let’s build the future together! 🚀
+
+*(P.S. If you’re looking for resources, partnerships, or feedback, feel free to share!)*
+==============================================================================
+''' # noqa: E501, RUF001
diff --git a/pyproject.toml b/pyproject.toml
index 4fcbb0424..867ded650 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
[project]
name = "camel-ai"
-version = "0.2.49"
+version = "0.2.50"
description = "Communicative Agents for AI Society Study"
authors = [{ name = "CAMEL-AI.org" }]
requires-python = ">=3.10,<3.13"
diff --git a/uv.lock b/uv.lock
index 575e1194e..7a9b00652 100644
--- a/uv.lock
+++ b/uv.lock
@@ -539,7 +539,7 @@ wheels = [
[[package]]
name = "camel-ai"
-version = "0.2.49"
+version = "0.2.50"
source = { editable = "." }
dependencies = [
{ name = "colorama" },