Skip to content

Commit

Permalink
Changed the way window_changed was added
Browse files Browse the repository at this point in the history
  • Loading branch information
dianzrong committed May 1, 2023
1 parent d4968b6 commit 626c209
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion puterbot/strategies/demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def get_next_input_event(
f"<{completion}>"
for completion in self.result_history
]
prompt = " ".join(event_strs + history_strs + summarized_ocr)
prompt = " ".join(event_strs + history_strs + list(window_changed))
N = max(0, len(prompt) - MAX_INPUT_SIZE)
prompt = prompt[N:]
logger.info(f"{prompt=}")
Expand Down

0 comments on commit 626c209

Please sign in to comment.