Skip to content

Commit

Permalink
chore: RolePlaying add warning for model setting
Browse files Browse the repository at this point in the history
  • Loading branch information
Wendong-Fan committed Sep 19, 2024
1 parent 147161e commit 1e0cf95
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions camel/societies/role_playing.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========
import logging
from typing import Dict, List, Optional, Sequence, Tuple, Union

from camel.agents import (
Expand All @@ -27,6 +28,9 @@
from camel.responses import ChatAgentResponse
from camel.types import RoleType, TaskType

logger = logging.getLogger(__name__)
logger.setLevel(logging.WARNING)


class RolePlaying:
r"""Role playing between two agents.
Expand Down Expand Up @@ -97,6 +101,14 @@ def __init__(
extend_task_specify_meta_dict: Optional[Dict] = None,
output_language: Optional[str] = None,
) -> None:
if model is not None:
logger.warning(
"The provided model will override the model settings in "
"all agents, including any configurations passed "
"through assistant_agent_kwargs, user_agent_kwargs, and "
"other agent-specific kwargs."
)

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
Expand Down

0 comments on commit 1e0cf95

Please sign in to comment.