Files
Auto-GPT/autogpts/autogpt/run
Reinier van der Leer 2c70059c2d fix(agent): Fix setup and run scripts
- Updated the `run` script to also check if `$OPENAI_API_KEY` is empty before copying `.env.example` and prompting the user to set API keys.
- Modified the `setup` script to install `--extras benchmark` separately from the initial `poetry install` command.
- Added `POETRY_INSTALLER_PARALLEL=false` flag to prevent conflicts between `forge` and `agbenchmark` during installation.
2023-12-02 13:48:45 +01:00

11 lines
206 B
Bash
Executable File

#!/bin/sh
kill $(lsof -t -i :8000)
if [ ! -f .env ] && [ -z "$OPENAI_API_KEY" ]; then
cp .env.example .env
echo "Please add your api keys to the .env file." >&2
# exit 1
fi
poetry run serve --debug