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' of github.com:Torantulino/Auto-GPT into attr-error-lower
Chris Cheneya40943ab8018
diff --cc scripts/main.pyindex 4d68b4506d,f96afeb163..d2cdd53013--- a/scripts/main.py+++ b/scripts/main.py@@@ -123,7 -123,7 +123,7 @@@ def load_variables(config_file="config.if ai_name == "":ai_name = "Entrepreneur-GPT"-- if not ai_role:++ if not ai_role:ai_role = input(f"{ai_name} is: ")if ai_role == "":ai_role = "an AI designed to autonomously develop and run businesses with the sole goal of increasing your net worth."@@@ -140,7 -140,7 +140,7 @@@ai_goals.append(ai_goal)if len(ai_goals) == 0:ai_goals = ["Increase net worth", "Grow Twitter Account", "Develop and manage multiple businesses autonomously"]--++# Save variables to yaml fileconfig = {"ai_name": ai_name, "ai_role": ai_role, "ai_goals": ai_goals}with open(config_file, "w") as file:@@@ -166,22 -166,22 +166,22 @@@ def construct_prompt()Fore.GREEN,f"Would you like me to return to being {config.ai_name}?",speak_text=True)-- should_continue = input(f"""Continue with the last settings?++ should_continue = input(f"""Continue with the last settings?Name: {config.ai_name}Role: {config.ai_role}--Goals: {config.ai_goals}++Goals: {config.ai_goals}Continue (y/n): """)if should_continue.lower() == "n":config = AIConfig()-- if not config.ai_name:++ if not config.ai_name:config = prompt_user()config.save()# Get rid of this global:global ai_nameai_name = config.ai_name--++full_prompt = config.construct_full_prompt()return full_prompt@@@ -242,7 -242,7 +242,7 @@@ def parse_arguments()global cfgcfg.set_continuous_mode(False)cfg.set_speak_mode(False)--++parser = argparse.ArgumentParser(description='Process arguments.')parser.add_argument('--continuous', action='store_true', help='Enable Continuous Mode')parser.add_argument('--speak', action='store_true', help='Enable Speak Mode')@@@ -358,7 -359,7 +359,7 @@@ while Truef"COMMAND = {Fore.CYAN}{command_name}{Style.RESET_ALL} ARGUMENTS = {Fore.CYAN}{arguments}{Style.RESET_ALL}")# Execute command- if command_name is not None and command_name.lower() == "error":- if command_name.lower().startswith( "error" ):++ if command_name is not None and command_name.lower().startswith( "error" ):result = f"Command {command_name} threw the following error: " + argumentselif command_name == "human_feedback":result = f"Human feedback: {user_input}"