fix original_autogpt path in classic/cli.py

This commit is contained in:
Reinier van der Leer
2024-09-20 13:21:36 +02:00
parent 4e33399d31
commit dfcfd003df

View File

@@ -134,7 +134,7 @@ def start(agent_name: str, no_setup: bool):
agent_dir = os.path.join(
script_dir,
f"agents/{agent_name}"
if agent_name not in ["autogpt", "forge"]
if agent_name not in ["original_autogpt", "forge"]
else agent_name,
)
run_command = os.path.join(agent_dir, "run")
@@ -217,8 +217,8 @@ def list():
for d in os.listdir(agents_dir)
if os.path.isdir(os.path.join(agents_dir, d))
]
if os.path.isdir("./autogpt"):
agents_list.append("autogpt")
if os.path.isdir("./original_autogpt"):
agents_list.append("original_autogpt")
if agents_list:
click.echo(click.style("Available agents: 🤖", fg="green"))
for agent in agents_list:
@@ -253,7 +253,7 @@ def start(agent_name, subprocess_args):
agent_dir = os.path.join(
script_dir,
f"agents/{agent_name}"
if agent_name not in ["autogpt", "forge"]
if agent_name not in ["original_autogpt", "forge"]
else agent_name,
)
benchmark_script = os.path.join(agent_dir, "run_benchmark")