unbreak ./run agent create

"If we had done this in Swift it would've never happened" ~Craig Swift

                ____
              / . .\
              \  ---<
               \  /
       ________/ /
    -=:___________/
This commit is contained in:
Reinier van der Leer
2024-05-10 12:53:57 +02:00
committed by GitHub
parent b0cbf711dc
commit c562b3b6a3

7
cli.py
View File

@@ -99,12 +99,7 @@ def create(agent_name):
new_agent_dir = f"./autogpts/{agent_name}"
new_agent_name = f"{agent_name.lower()}.json"
existing_arena_files = [name.lower() for name in os.listdir("./arena/")]
if (
not os.path.exists(new_agent_dir)
and not new_agent_name in existing_arena_files
):
if not os.path.exists(new_agent_dir):
shutil.copytree("./autogpts/forge", new_agent_dir)
click.echo(
click.style(