mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-30 03:00:41 -04:00
- Moved `autogpt` and `forge` to project root - Removed `autogpts` directory - Moved and renamed submodule `autogpts/autogpt/tests/vcr_cassettes` to `autogpt/tests/vcr_cassettes` - When using CLI agents will be created in `agents` directory (instead of `autogpts`) - Renamed relevant docs, code and config references from `autogpts/[forge|autogpt]` to `[forge|autogpt]` and from `*../../*` to `*../*` - Updated `CODEOWNERS`, GitHub Actions and Docker `*.yml` configs - Updated symbolic links in `docs`
30 lines
699 B
Bash
Executable File
30 lines
699 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
function find_python_command() {
|
|
if command -v python3 &> /dev/null
|
|
then
|
|
echo "python3"
|
|
elif command -v python &> /dev/null
|
|
then
|
|
echo "python"
|
|
else
|
|
echo "Python not found. Please install Python."
|
|
exit 1
|
|
fi
|
|
}
|
|
|
|
PYTHON_CMD=$(find_python_command)
|
|
|
|
if $PYTHON_CMD -c "import sys; sys.exit(sys.version_info < (3, 10))"; then
|
|
if ! $PYTHON_CMD scripts/check_requirements.py; then
|
|
echo
|
|
poetry install --without dev
|
|
echo
|
|
echo "Finished installing packages! Starting AutoGPT..."
|
|
echo
|
|
fi
|
|
poetry run autogpt "$@"
|
|
else
|
|
echo "Python 3.10 or higher is required to run Auto GPT."
|
|
fi
|