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.

Merge pull request #957 from cryptidv/master

Richard Bealesbc75c74eef45
diff --cc scripts/main.py
index d7b94085c6,c5963635bf..0a4e97a256
--- a/scripts/main.py
+++ b/scripts/main.py
@@@ -275,15 -276,12 +275,16 @@@ def parse_arguments()
parser.add_argument('--debug', action='store_true', help='Enable Debug Mode')
parser.add_argument('--gpt3only', action='store_true', help='Enable GPT3.5 Only Mode')
parser.add_argument('--gpt4only', action='store_true', help='Enable GPT4 Only Mode')
+ parser.add_argument('--use-memory', '-m', dest="memory_type", help='Defines which Memory backend to use')
args = parser.parse_args()
+ if args.debug:
+ logger.typewriter_log("Debug Mode: ", Fore.GREEN, "ENABLED")
+ cfg.set_debug_mode(True)
+
if args.continuous:
- print_to_console("Continuous Mode: ", Fore.RED, "ENABLED")
- print_to_console(
+ logger.typewriter_log("Continuous Mode: ", Fore.RED, "ENABLED")
+ logger.typewriter_log(
"WARNING: ",
Fore.RED,
"Continuous mode is not recommended. It is potentially dangerous and may cause your AI to run forever or carry out actions you would not usually authorise. Use at your own risk.")
@@@ -302,9 -300,18 +303,18 @@@
cfg.set_fast_llm_model(cfg.smart_llm_model)
if args.debug:
- print_to_console("Debug Mode: ", Fore.GREEN, "ENABLED")
+ logger.typewriter_log("Debug Mode: ", Fore.GREEN, "ENABLED")
cfg.set_debug_mode(True)
+ if args.memory_type:
+ 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)
+ else:
+ cfg.memory_backend = chosen
+
# TODO: fill in llm values here
check_openai_api_key()