mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-01-09 15:17:59 -05:00
unbreak ./run agent create
"If we had done this in Swift it would've never happened" ~Craig Swift
____
/ . .\
\ ---<
\ /
________/ /
-=:___________/
This commit is contained in:
committed by
GitHub
parent
b0cbf711dc
commit
c562b3b6a3
7
cli.py
7
cli.py
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user