diff options
Diffstat (limited to 'autogpts/autogpt/run')
-rwxr-xr-x | autogpts/autogpt/run | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/autogpts/autogpt/run b/autogpts/autogpt/run new file mode 100755 index 000000000..eebf7fe0f --- /dev/null +++ b/autogpts/autogpt/run @@ -0,0 +1,10 @@ +#!/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 |