Skip to content
This repository has been archived by the owner on Jun 9, 2024. It is now read-only.

Commit

Permalink
Fix Auto-GPT integration by adding python module as entrypoint (#86)
Browse files Browse the repository at this point in the history
Co-authored-by: Silen Naihin <silen.naihin@gmail.com>
  • Loading branch information
waynehamadi and SilenNaihin authored Jul 11, 2023
1 parent 2229535 commit 4ecb70c
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 8 deletions.
3 changes: 1 addition & 2 deletions agbenchmark/agent_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion agbenchmark/config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"workspace": "${os.path.join(Path.home(), 'miniagi')}",
"entry_path": "agbenchmark/benchmarks.py",
"entry_path": "agbenchmark.benchmarks",
"cutoff": 60
}
2 changes: 1 addition & 1 deletion agent/Auto-GPT
2 changes: 1 addition & 1 deletion agent/SuperAGI
2 changes: 1 addition & 1 deletion agent/gpt-engineer
2 changes: 1 addition & 1 deletion agent/mini-agi
2 changes: 1 addition & 1 deletion agent/smol-developer

0 comments on commit 4ecb70c

Please sign in to comment.