Skip to content

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.

Fixed error logging when choosing non-supported memory backend with '--use-memory'

Eesa Hamzaa10ffc1dbed8
diff --git a/scripts/main.py b/scripts/main.py
index 07d2bbd292..59cb565e95 100644
--- a/scripts/main.py
+++ b/scripts/main.py
@@ -316,8 +316,8 @@ def parse_arguments():
supported_memory = get_supported_memory_backends()
chosen = args.memory_type
if not chosen in supported_memory:
- print_to_console("ONLY THE FOLLOWING MEMORY BACKENDS ARE SUPPORTED: ", Fore.RED, f'{supported_memory}')
- print_to_console(f"Defaulting to: ", Fore.YELLOW, cfg.memory_backend)
+ logger.typewriter_log("ONLY THE FOLLOWING MEMORY BACKENDS ARE SUPPORTED: ", Fore.RED, f'{supported_memory}')
+ logger.typewriter_log(f"Defaulting to: ", Fore.YELLOW, cfg.memory_backend)
else:
cfg.memory_backend = chosen