Fix Auto-GPT integration by adding python module as entrypoint (#86)

Co-authored-by: Silen Naihin <silen.naihin@gmail.com>
This commit is contained in:
merwanehamadi
2023-07-11 12:11:24 -07:00
committed by GitHub
parent 22295350a6
commit 4ecb70c5e3
7 changed files with 7 additions and 8 deletions

View File

@@ -32,8 +32,7 @@ def run_agent(
print(
f"Running Python function '{config['entry_path']}' with timeout {timeout}"
)
command = [sys.executable, config["entry_path"], str(task)]
command = [sys.executable, "-m", config["entry_path"], str(task)]
process = subprocess.Popen(
command,
stdout=subprocess.PIPE,

View File

@@ -1,5 +1,5 @@
{
"workspace": "${os.path.join(Path.home(), 'miniagi')}",
"entry_path": "agbenchmark/benchmarks.py",
"entry_path": "agbenchmark.benchmarks",
"cutoff": 60
}