AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
Remove extra spaces in summarization prompt (#4660)
Kinanceff46c16805a5
diff --git a/autogpt/memory/message_history.py b/autogpt/memory/message_history.pyindex 2ae5305563..7f3075361c 100644--- a/autogpt/memory/message_history.py+++ b/autogpt/memory/message_history.py@@ -199,18 +199,18 @@ class MessageHistory:def summarize_batch(self, new_events_batch, cfg):prompt = f'''Your task is to create a concise running summary of actions and information results in the provided text, focusing on key and potentially important information to remember.- You will receive the current summary and your latest actions. Combine them, adding relevant key information from the latest development in 1st person past tense and keeping the summary concise.-- Summary So Far:- """- {self.summary}- """-- Latest Development:- """- {new_events_batch or "Nothing new happened."}- """- '''+You will receive the current summary and your latest actions. Combine them, adding relevant key information from the latest development in 1st person past tense and keeping the summary concise.++Summary So Far:+"""+{self.summary}+"""++Latest Development:+"""+{new_events_batch or "Nothing new happened."}+"""+'''prompt = ChatSequence.for_model(cfg.fast_llm_model, [Message("user", prompt)])self.agent.log_cycle_handler.log_cycle(