Skip to content

Commit

Permalink
Modified the language-specification prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
HalberdOfPineapple committed Jun 24, 2023
1 parent a33462e commit de04198
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions camel/agents/task_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def __init__(
content="You can make a task more specific.",
)
if output_language != "English":
system_message.content += f"And you should output task specification in {output_language}, but not English."
system_message.content += f"And you should output task specification in {output_language}"

super().__init__(system_message, model, model_config)

Expand Down Expand Up @@ -143,7 +143,7 @@ def __init__(
content="You are a helpful task planner.",
)
if output_language != "English":
system_message.content += f"And you should plan the task in {output_language}, but not English."
system_message.content += f"And you should plan the task in {output_language}"
super().__init__(system_message, model, model_config)

def step(
Expand Down
2 changes: 1 addition & 1 deletion camel/societies/role_playing.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def __init__(
))

if output_language != "English":
language_prompt = f"""\nNote that the conversation should be in {output_language} instead of English."""
language_prompt = f"""\nNote that the conversation should be in {output_language}"""
self.assistant_sys_msg.content += language_prompt
self.user_sys_msg += language_prompt

Expand Down

0 comments on commit de04198

Please sign in to comment.