Skip to content

Commit fcbf87f

Browse files
committed
update task done logic
1 parent 3641e4b commit fcbf87f

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

owl/utils/enhanced_role_playing.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -450,12 +450,6 @@ def run_society(
450450
"""
451451
input_msg = society.init_chat(init_prompt)
452452
for _round in range(round_limit):
453-
# Check if previous user response had TASK_DONE before getting next assistant response
454-
if _round > 0 and (
455-
"TASK_DONE" in input_msg.content or "任务已完成" in input_msg.content
456-
):
457-
break
458-
459453
assistant_response, user_response = society.step(input_msg)
460454
overall_completion_token_count += (
461455
assistant_response.info["usage"]["completion_tokens"]

0 commit comments

Comments
 (0)