🐫 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
fix: Qwen config extra_body type (#2230)
Wendong-Fan4a2945e90ac0
diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.ymlindex 1e997b41e..2bee59070 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.45+ placeholder: E.g., 0.2.46validations:required: truediff --git a/camel/__init__.py b/camel/__init__.pyindex 586170752..1e69b6f87 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.45'+__version__ = '0.2.46'__all__ = ['__version__',diff --git a/camel/configs/qwen_config.py b/camel/configs/qwen_config.pyindex d410d32d8..53409edde 100644--- a/camel/configs/qwen_config.py+++ b/camel/configs/qwen_config.py@@ -13,7 +13,7 @@# ========= Copyright 2023-2024 @ CAMEL-AI.org. All Rights Reserved. =========from __future__ import annotations-from typing import Dict, List, Optional, Union+from typing import Any, Dict, List, Optional, Unionfrom camel.configs.base_config import BaseConfig@@ -61,7 +61,7 @@ class QwenConfig(BaseConfig):call. It can contain one or more tool objects. During a functioncall process, the model will select one tool from the array.(default: :obj:`None`)- extra_body (Optional[Dict[str, str]], optional): Additional parameters+ extra_body (Optional[Dict[str, Any]], optional): Additional parametersto be sent to the Qwen API. If you want to enable internet search,you can set this parameter to `{"enable_search": True}`.(default: :obj:`None`)@@ -78,7 +78,7 @@ class QwenConfig(BaseConfig):max_tokens: Optional[int] = Noneseed: Optional[int] = Nonestop: Optional[Union[str, List]] = None- extra_body: Optional[Dict[str, str]] = None+ extra_body: Optional[Dict[str, Any]] = Nonedef __init__(self, include_usage: bool = True, **kwargs):super().__init__(**kwargs)diff --git a/docs/conf.py b/docs/conf.pyindex b7ea0f149..21ffe77e4 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.45'+release = '0.2.46'html_favicon = ('https://raw.githubusercontent.com/camel-ai/camel/master/misc/favicon.png'diff --git a/docs/cookbooks/loong/batched_single_step_env.ipynb b/docs/cookbooks/loong/batched_single_step_env.ipynbindex 0635249aa..dab046fa1 100644--- a/docs/cookbooks/loong/batched_single_step_env.ipynb+++ b/docs/cookbooks/loong/batched_single_step_env.ipynb@@ -35,7 +35,7 @@"metadata": {},"outputs": [],"source": [- "%pip install camel-ai[all]==0.2.45"+ "%pip install camel-ai[all]==0.2.46"]},{diff --git a/docs/cookbooks/loong/multi_step_rl.ipynb b/docs/cookbooks/loong/multi_step_rl.ipynbindex fdc6351d3..b4b035502 100644--- a/docs/cookbooks/loong/multi_step_rl.ipynb+++ b/docs/cookbooks/loong/multi_step_rl.ipynb@@ -30,7 +30,7 @@"metadata": {},"outputs": [],"source": [- "%pip install camel-ai[all]==0.2.45"+ "%pip install camel-ai[all]==0.2.46"]},{diff --git a/docs/cookbooks/loong/single_step_env.ipynb b/docs/cookbooks/loong/single_step_env.ipynbindex ffd909303..a9a4a2df7 100644--- a/docs/cookbooks/loong/single_step_env.ipynb+++ b/docs/cookbooks/loong/single_step_env.ipynb@@ -33,7 +33,7 @@"metadata": {},"outputs": [],"source": [- "%pip install camel-ai[all]==0.2.45"+ "%pip install camel-ai[all]==0.2.46"]},{diff --git a/docs/key_modules/loaders.md b/docs/key_modules/loaders.mdindex 26de3d6b1..01c49b8c9 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.45 documentation+>>>Welcome to CAMEL’s documentation! — CAMEL 0.2.46 documentation===============[Skip to main content](https://docs.camel-ai.org/#main-content)Back to top Ctrl+K- [ CAMEL 0.2.45](https://docs.camel-ai.org/#)+ [ CAMEL 0.2.46](https://docs.camel-ai.org/#)Search Ctrl+Kdiff --git a/pyproject.toml b/pyproject.tomlindex 30fc6a7a7..029ad148a 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -4,7 +4,7 @@ build-backend = "hatchling.build"[project]name = "camel-ai"-version = "0.2.45"+version = "0.2.46"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.lockindex 8125c2faa..5e67fa680 100644--- a/uv.lock+++ b/uv.lock@@ -527,7 +527,7 @@ wheels = [[[package]]name = "camel-ai"-version = "0.2.45"+version = "0.2.46"source = { editable = "." }dependencies = [{ name = "colorama" },