mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-08 03:00:28 -04:00
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:
@@ -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,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"workspace": "${os.path.join(Path.home(), 'miniagi')}",
|
||||
"entry_path": "agbenchmark/benchmarks.py",
|
||||
"entry_path": "agbenchmark.benchmarks",
|
||||
"cutoff": 60
|
||||
}
|
||||
|
||||
Submodule agent/Auto-GPT updated: ade8e6f814...e5fbe4313e
Submodule agent/SuperAGI updated: a28224d825...9280512910
Submodule agent/gpt-engineer updated: 538bcba6ef...42400fd679
Submodule agent/mini-agi updated: ad2b345050...6a1d08880c
Submodule agent/smol-developer updated: 150981f77f...a0e9f4f39e
Reference in New Issue
Block a user