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

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

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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