AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
fix(agent): Fix `setup` and `run` scripts
Reinier van der Leer2c70059c2d63
diff --git a/autogpts/autogpt/run b/autogpts/autogpt/runindex b37c053fa3..eebf7fe0f9 100755--- a/autogpts/autogpt/run+++ b/autogpts/autogpt/run@@ -2,7 +2,7 @@kill $(lsof -t -i :8000)-if [ ! -f .env ]; then+if [ ! -f .env ] && [ -z "$OPENAI_API_KEY" ]; thencp .env.example .envecho "Please add your api keys to the .env file." >&2# exit 1diff --git a/autogpts/autogpt/setup b/autogpts/autogpt/setupindex 511ef7277f..c22f7da1a1 100755--- a/autogpts/autogpt/setup+++ b/autogpts/autogpt/setup@@ -1,4 +1,9 @@#!/bin/sh-poetry install --no-interaction --extras benchmark+poetry install --no-interaction++# Necessary to prevent forge and agbenchmark from breaking each others' install:+# https://github.com/python-poetry/poetry/issues/6958+POETRY_INSTALLER_PARALLEL=false poetry install --no-interaction --extras benchmark+echo "Setup completed successfully."