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: RolePlaying model setting would be override by default model (#1170)

Wendong-Fan111143afce60
diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml
index 03ce1a00a..b28e2910f 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.8
+ placeholder: E.g., 0.2.9
validations:
required: true
diff --git a/README.md b/README.md
index dd75c9c9f..d6edcdbea 100644
--- a/README.md
+++ b/README.md
@@ -144,7 +144,7 @@ conda create --name camel python=3.10
conda activate camel
# Clone github repo
-git clone -b v0.2.8 https://github.com/camel-ai/camel.git
+git clone -b v0.2.9 https://github.com/camel-ai/camel.git
# Change directory into project directory
cd camel
diff --git a/camel/__init__.py b/camel/__init__.py
index ca94c1586..0f926261a 100644
--- a/camel/__init__.py
+++ b/camel/__init__.py
@@ -12,7 +12,7 @@
# limitations under the License.
# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========
-__version__ = '0.2.8'
+__version__ = '0.2.9'
__all__ = [
'__version__',
diff --git a/camel/societies/role_playing.py b/camel/societies/role_playing.py
index 1e6038330..bcf2fc18c 100644
--- a/camel/societies/role_playing.py
+++ b/camel/societies/role_playing.py
@@ -23,10 +23,10 @@ from camel.agents import (
from camel.generators import SystemMessageGenerator
from camel.human import Human
from camel.messages import BaseMessage
-from camel.models import BaseModelBackend, ModelFactory
+from camel.models import BaseModelBackend
from camel.prompts import TextPrompt
from camel.responses import ChatAgentResponse
-from camel.types import ModelPlatformType, ModelType, RoleType, TaskType
+from camel.types import RoleType, TaskType
logger = logging.getLogger(__name__)
logger.setLevel(logging.WARNING)
@@ -111,14 +111,7 @@ class RolePlaying:
self.with_task_specify = with_task_specify
self.with_task_planner = with_task_planner
self.with_critic_in_the_loop = with_critic_in_the_loop
- self.model: BaseModelBackend = (
- model
- if model is not None
- else ModelFactory.create(
- model_platform=ModelPlatformType.DEFAULT,
- model_type=ModelType.DEFAULT,
- )
- )
+ self.model = model
self.task_type = task_type
self.task_prompt = task_prompt
diff --git a/docs/conf.py b/docs/conf.py
index 4d31735f9..51842904b 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.8'
+release = '0.2.9'
html_favicon = (
'https://raw.githubusercontent.com/camel-ai/camel/master/misc/favicon.png'
diff --git a/docs/cookbooks/agents_message.ipynb b/docs/cookbooks/agents_message.ipynb
index d0e5a17b5..e0a34436a 100644
--- a/docs/cookbooks/agents_message.ipynb
+++ b/docs/cookbooks/agents_message.ipynb
@@ -101,7 +101,7 @@
},
"outputs": [],
"source": [
- "!pip install \"camel-ai==0.2.8\""
+ "!pip install \"camel-ai==0.2.9\""
]
},
{
diff --git a/docs/cookbooks/agents_prompting.ipynb b/docs/cookbooks/agents_prompting.ipynb
index 9f217b9f5..de48a2cac 100644
--- a/docs/cookbooks/agents_prompting.ipynb
+++ b/docs/cookbooks/agents_prompting.ipynb
@@ -64,7 +64,7 @@
},
"outputs": [],
"source": [
- "!pip install \"camel-ai==0.2.8\""
+ "!pip install \"camel-ai==0.2.9\""
]
},
{
diff --git a/docs/cookbooks/agents_society.ipynb b/docs/cookbooks/agents_society.ipynb
index 53bc359c3..97139977c 100644
--- a/docs/cookbooks/agents_society.ipynb
+++ b/docs/cookbooks/agents_society.ipynb
@@ -192,7 +192,7 @@
},
"outputs": [],
"source": [
- "!pip install \"camel-ai==0.2.8\""
+ "!pip install \"camel-ai==0.2.9\""
]
},
{
diff --git a/docs/cookbooks/agents_tracking.ipynb b/docs/cookbooks/agents_tracking.ipynb
index af721af86..baf596e06 100644
--- a/docs/cookbooks/agents_tracking.ipynb
+++ b/docs/cookbooks/agents_tracking.ipynb
@@ -64,7 +64,7 @@
},
"outputs": [],
"source": [
- "%pip install camel-ai[all]==0.2.8\n",
+ "%pip install camel-ai[all]==0.2.9\n",
"%pip install agentops==0.3.10"
]
},
diff --git a/docs/cookbooks/agents_with_memory.ipynb b/docs/cookbooks/agents_with_memory.ipynb
index b2bd55799..6c49266bd 100644
--- a/docs/cookbooks/agents_with_memory.ipynb
+++ b/docs/cookbooks/agents_with_memory.ipynb
@@ -73,7 +73,7 @@
},
"outputs": [],
"source": [
- "!pip install \"camel-ai[all]==0.2.8\""
+ "!pip install \"camel-ai[all]==0.2.9\""
]
},
{
diff --git a/docs/cookbooks/agents_with_rag.ipynb b/docs/cookbooks/agents_with_rag.ipynb
index f797465a5..a201b4e00 100644
--- a/docs/cookbooks/agents_with_rag.ipynb
+++ b/docs/cookbooks/agents_with_rag.ipynb
@@ -75,7 +75,7 @@
},
"outputs": [],
"source": [
- "!pip install \"camel-ai[all]==0.2.8\""
+ "!pip install \"camel-ai[all]==0.2.9\""
]
},
{
diff --git a/docs/cookbooks/agents_with_tools.ipynb b/docs/cookbooks/agents_with_tools.ipynb
index 20b6dc6c8..4fa571e87 100644
--- a/docs/cookbooks/agents_with_tools.ipynb
+++ b/docs/cookbooks/agents_with_tools.ipynb
@@ -77,7 +77,7 @@
},
"outputs": [],
"source": [
- "!pip install \"camel-ai[all]==0.2.8\""
+ "!pip install \"camel-ai[all]==0.2.9\""
]
},
{
diff --git a/docs/cookbooks/create_your_first_agent.ipynb b/docs/cookbooks/create_your_first_agent.ipynb
index 6ba775431..e333f27a5 100644
--- a/docs/cookbooks/create_your_first_agent.ipynb
+++ b/docs/cookbooks/create_your_first_agent.ipynb
@@ -83,7 +83,7 @@
{
"cell_type": "code",
"source": [
- "!pip install \"camel-ai[all]==0.2.8\""
+ "!pip install \"camel-ai[all]==0.2.9\""
],
"metadata": {
"id": "UtcC3c-KVZmU"
diff --git a/docs/cookbooks/create_your_first_agents_society.ipynb b/docs/cookbooks/create_your_first_agents_society.ipynb
index fad32db27..a5c2120aa 100644
--- a/docs/cookbooks/create_your_first_agents_society.ipynb
+++ b/docs/cookbooks/create_your_first_agents_society.ipynb
@@ -77,7 +77,7 @@
{
"cell_type": "code",
"source": [
- "!pip install \"camel-ai==0.2.8\""
+ "!pip install \"camel-ai==0.2.9\""
],
"metadata": {
"id": "RiwfwyyLYYxo"
diff --git a/docs/cookbooks/critic_agents_and_tree_search.ipynb b/docs/cookbooks/critic_agents_and_tree_search.ipynb
index 47b04ace0..6c1c52445 100644
--- a/docs/cookbooks/critic_agents_and_tree_search.ipynb
+++ b/docs/cookbooks/critic_agents_and_tree_search.ipynb
@@ -84,7 +84,7 @@
{
"cell_type": "code",
"source": [
- "%pip install \"camel-ai==0.2.8\""
+ "%pip install \"camel-ai==0.2.9\""
],
"metadata": {
"id": "UtcC3c-KVZmU"
diff --git a/docs/cookbooks/embodied_agents.ipynb b/docs/cookbooks/embodied_agents.ipynb
index bec9643f8..068ce639b 100644
--- a/docs/cookbooks/embodied_agents.ipynb
+++ b/docs/cookbooks/embodied_agents.ipynb
@@ -67,7 +67,7 @@
{
"cell_type": "code",
"source": [
- "%pip install \"camel-ai==0.2.8\""
+ "%pip install \"camel-ai==0.2.9\""
],
"metadata": {
"id": "UtcC3c-KVZmU"
diff --git a/docs/cookbooks/knowledge_graph.ipynb b/docs/cookbooks/knowledge_graph.ipynb
index 0afd55e30..742c9336f 100644
--- a/docs/cookbooks/knowledge_graph.ipynb
+++ b/docs/cookbooks/knowledge_graph.ipynb
@@ -73,7 +73,7 @@
},
"outputs": [],
"source": [
- "pip install \"camel-ai[all]==0.2.8\""
+ "pip install \"camel-ai[all]==0.2.9\""
]
},
{
diff --git a/docs/cookbooks/model_speed_comparison.ipynb b/docs/cookbooks/model_speed_comparison.ipynb
index 28b3b8455..d5f3c5e32 100644
--- a/docs/cookbooks/model_speed_comparison.ipynb
+++ b/docs/cookbooks/model_speed_comparison.ipynb
@@ -63,7 +63,7 @@
{
"cell_type": "code",
"source": [
- "!pip install \"camel-ai==0.2.8\""
+ "!pip install \"camel-ai==0.2.9\""
],
"metadata": {
"id": "UtcC3c-KVZmU"
diff --git a/docs/cookbooks/roleplaying_scraper.ipynb b/docs/cookbooks/roleplaying_scraper.ipynb
index 45d680615..185a069ac 100644
--- a/docs/cookbooks/roleplaying_scraper.ipynb
+++ b/docs/cookbooks/roleplaying_scraper.ipynb
@@ -89,7 +89,7 @@
},
"outputs": [],
"source": [
- "!pip install \"camel-ai[all]==0.2.8\""
+ "!pip install \"camel-ai[all]==0.2.9\""
]
},
{
diff --git a/docs/cookbooks/task_generation.ipynb b/docs/cookbooks/task_generation.ipynb
index c5d8647bd..282a7388c 100644
--- a/docs/cookbooks/task_generation.ipynb
+++ b/docs/cookbooks/task_generation.ipynb
@@ -62,7 +62,7 @@
},
"outputs": [],
"source": [
- "!pip install \"camel-ai==0.2.8\""
+ "!pip install \"camel-ai==0.2.9\""
]
},
{
diff --git a/docs/cookbooks/video_analysis.ipynb b/docs/cookbooks/video_analysis.ipynb
index 494436cb5..a32049af5 100644
--- a/docs/cookbooks/video_analysis.ipynb
+++ b/docs/cookbooks/video_analysis.ipynb
@@ -28,7 +28,7 @@
},
"outputs": [],
"source": [
- "%pip install \"camel-ai[all]==0.2.8\""
+ "%pip install \"camel-ai[all]==0.2.9\""
]
},
{
diff --git a/docs/cookbooks/workforce_judge_committee.ipynb b/docs/cookbooks/workforce_judge_committee.ipynb
index 3a0306079..203cf99a4 100644
--- a/docs/cookbooks/workforce_judge_committee.ipynb
+++ b/docs/cookbooks/workforce_judge_committee.ipynb
@@ -28,7 +28,7 @@
},
"outputs": [],
"source": [
- "%pip install \"camel-ai[all]==0.2.8\""
+ "%pip install \"camel-ai[all]==0.2.9\""
]
},
{
diff --git a/docs/get_started/installation.md b/docs/get_started/installation.md
index 2eaa92170..db0f3687d 100644
--- a/docs/get_started/installation.md
+++ b/docs/get_started/installation.md
@@ -60,7 +60,7 @@ conda create --name camel python=3.10
conda activate camel
# Clone github repo
-git clone -b v0.2.8 https://github.com/camel-ai/camel.git
+git clone -b v0.2.9 https://github.com/camel-ai/camel.git
# Change directory into project directory
cd camel
diff --git a/docs/key_modules/loaders.md b/docs/key_modules/loaders.md
index 9fd2d8f5c..bc9b02e39 100644
--- a/docs/key_modules/loaders.md
+++ b/docs/key_modules/loaders.md
@@ -336,14 +336,14 @@ response = jina_reader.read_content("https://docs.camel-ai.org/")
print(response)
```
```markdown
->>>Welcome to CAMEL’s documentation! — CAMEL 0.2.8 documentation
+>>>Welcome to CAMEL’s documentation! — CAMEL 0.2.9 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.8](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.9](https://docs.camel-ai.org/#)
Search Ctrl+K
diff --git a/pyproject.toml b/pyproject.toml
index cb80d8e95..82cc220ae 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "camel-ai"
-version = "0.2.8"
+version = "0.2.9"
authors = ["CAMEL-AI.org"]
description = "Communicative Agents for AI Society Study"
readme = "README.md"