Skip to content

Commit 111143a

Browse files
authored
fix: RolePlaying model setting would be override by default model (#1170)
1 parent 26be974 commit 111143a

25 files changed

+28
-35
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ body:
2626
attributes:
2727
label: What version of camel are you using?
2828
description: Run command `python3 -c 'print(__import__("camel").__version__)'` in your shell and paste the output here.
29-
placeholder: E.g., 0.2.8
29+
placeholder: E.g., 0.2.9
3030
validations:
3131
required: true
3232

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ conda create --name camel python=3.10
144144
conda activate camel
145145
146146
# Clone github repo
147-
git clone -b v0.2.8 https://github.com/camel-ai/camel.git
147+
git clone -b v0.2.9 https://github.com/camel-ai/camel.git
148148
149149
# Change directory into project directory
150150
cd camel

camel/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# limitations under the License.
1313
# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========
1414

15-
__version__ = '0.2.8'
15+
__version__ = '0.2.9'
1616

1717
__all__ = [
1818
'__version__',

camel/societies/role_playing.py

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@
2323
from camel.generators import SystemMessageGenerator
2424
from camel.human import Human
2525
from camel.messages import BaseMessage
26-
from camel.models import BaseModelBackend, ModelFactory
26+
from camel.models import BaseModelBackend
2727
from camel.prompts import TextPrompt
2828
from camel.responses import ChatAgentResponse
29-
from camel.types import ModelPlatformType, ModelType, RoleType, TaskType
29+
from camel.types import RoleType, TaskType
3030

3131
logger = logging.getLogger(__name__)
3232
logger.setLevel(logging.WARNING)
@@ -111,14 +111,7 @@ def __init__(
111111
self.with_task_specify = with_task_specify
112112
self.with_task_planner = with_task_planner
113113
self.with_critic_in_the_loop = with_critic_in_the_loop
114-
self.model: BaseModelBackend = (
115-
model
116-
if model is not None
117-
else ModelFactory.create(
118-
model_platform=ModelPlatformType.DEFAULT,
119-
model_type=ModelType.DEFAULT,
120-
)
121-
)
114+
self.model = model
122115
self.task_type = task_type
123116
self.task_prompt = task_prompt
124117

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
project = 'CAMEL'
2828
copyright = '2024, CAMEL-AI.org'
2929
author = 'CAMEL-AI.org'
30-
release = '0.2.8'
30+
release = '0.2.9'
3131

3232
html_favicon = (
3333
'https://raw.githubusercontent.com/camel-ai/camel/master/misc/favicon.png'

docs/cookbooks/agents_message.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
},
102102
"outputs": [],
103103
"source": [
104-
"!pip install \"camel-ai==0.2.8\""
104+
"!pip install \"camel-ai==0.2.9\""
105105
]
106106
},
107107
{

docs/cookbooks/agents_prompting.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
},
6565
"outputs": [],
6666
"source": [
67-
"!pip install \"camel-ai==0.2.8\""
67+
"!pip install \"camel-ai==0.2.9\""
6868
]
6969
},
7070
{

docs/cookbooks/agents_society.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@
192192
},
193193
"outputs": [],
194194
"source": [
195-
"!pip install \"camel-ai==0.2.8\""
195+
"!pip install \"camel-ai==0.2.9\""
196196
]
197197
},
198198
{

docs/cookbooks/agents_tracking.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
},
6565
"outputs": [],
6666
"source": [
67-
"%pip install camel-ai[all]==0.2.8\n",
67+
"%pip install camel-ai[all]==0.2.9\n",
6868
"%pip install agentops==0.3.10"
6969
]
7070
},

docs/cookbooks/agents_with_memory.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
},
7474
"outputs": [],
7575
"source": [
76-
"!pip install \"camel-ai[all]==0.2.8\""
76+
"!pip install \"camel-ai[all]==0.2.9\""
7777
]
7878
},
7979
{

0 commit comments

Comments
 (0)