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

fix: Qwen config extra_body type (#2230)

Wendong-Fan4a2945e90ac0
diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml
index 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.46
validations:
required: true
diff --git a/camel/__init__.py b/camel/__init__.py
index 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.py
index 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, Union
from camel.configs.base_config import BaseConfig
@@ -61,7 +61,7 @@ class QwenConfig(BaseConfig):
call. It can contain one or more tool objects. During a function
call 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 parameters
to 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] = None
seed: Optional[int] = None
stop: Optional[Union[str, List]] = None
- extra_body: Optional[Dict[str, str]] = None
+ extra_body: Optional[Dict[str, Any]] = None
def __init__(self, include_usage: bool = True, **kwargs):
super().__init__(**kwargs)
diff --git a/docs/conf.py b/docs/conf.py
index 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.ipynb
index 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.ipynb
index 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.ipynb
index 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.md
index 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
- [![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.45](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.46](https://docs.camel-ai.org/#)
Search Ctrl+K
diff --git a/pyproject.toml b/pyproject.toml
index 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.lock
index 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" },