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.
Merge branch 'master' into feature/time-and-date
Toran Bruce Richardsfd0a4b318631
diff --cc scripts/chat.pyindex 0b110bbae9,5ab52f993e..a27fbfd7ef--- a/scripts/chat.py+++ b/scripts/chat.py@@@ -26,11 -26,8 +26,11 @@@ def create_chat_message(role, content)def generate_context(prompt, relevant_memory, full_message_history, model):current_context = [create_chat_message(- "system", prompt), create_chat_message(+ "system", prompt),+ create_chat_message(+ "system", f"The current time and date is {time.strftime('%c')}"),+ create_chat_message(- "system", f"Permanent memory: {relevant_memory}")]+ "system", f"This reminds you of these events from your past:\n{relevant_memory}\n\n")]# Add messages from the full message history until we reach the token limitnext_message_to_add_index = len(full_message_history) - 1