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.
skip getting relevant memory if no message history
celthic5188d561184
diff --git a/scripts/chat.py b/scripts/chat.pyindex e16cee3837..afec22193e 100644--- a/scripts/chat.py+++ b/scripts/chat.py@@ -69,7 +69,7 @@ def chat_with_ai(logger.debug(f"Token limit: {token_limit}")send_token_limit = token_limit - 1000- relevant_memory = permanent_memory.get_relevant(str(full_message_history[-9:]), 10)+ relevant_memory = '' if len(full_message_history) ==0 else permanent_memory.get_relevant(str(full_message_history[-9:]), 10)logger.debug(f'Memory Stats: {permanent_memory.get_stats()}')