Fix Typos (#275)

* init

* init

* fix typo
This commit is contained in:
Yan98
2025-07-24 00:06:04 +08:00
committed by GitHub
parent fd7381210e
commit 2f3a6c48f6

View File

@@ -1034,7 +1034,7 @@ class GTA1Agent:
assert len(valid_responses) > int(self.N_SEQ) * 0.5, f"Not enough valid responses generated {len(valid_responses)}"
if self.N_SEQ > 1:
history_cache = [f"Observation:\n{o}\nThought:\n{t}\nAction:\n{a}" for a,t,o in zip(self.actions, self.thoughts, self.observations)]
history_cache = [f"Observation:\n{o}\nThought:\n{t}\nAction:\n{a}" for a,t,o in zip(self.actions, self.thoughts, self.observation_captions)]
planner_response = self.select(instruction, Image.open(BytesIO(obs['screenshot'])), valid_responses, history_cache)
else:
planner_response = valid_responses[0]