Skip to content

Commit 22c950e

Browse files
chore: remove explicit action (already present in previous action message)\
1 parent 68cd70d commit 22c950e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

balrog/evaluator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ def run_episode(self, task, agent, process_num=None, position=0, episode_idx=0):
321321

322322
# Give feedback on the action (if not valid)
323323
obs["text"]["long_term_context"] = (
324-
f"\n\nYour previous output action: '{response.completion}' is not a valid action. Defaulted to action: {action}\n"
324+
f"\n\nYour previous output action was not a valid action. Defaulted to action: {action}\n\nObservation:\n"
325325
+ obs["text"]["long_term_context"]
326326
if (action != response.completion) and (self.config.eval.feedback_on_invalid_action)
327327
else obs["text"]["long_term_context"]

0 commit comments

Comments
 (0)