ds2api / agy2api /termux-start.sh
luckfun233
feat(agy): 内嵌 agy2api,接入 Gemini 模型与独立 AGY 面板
b0074f5
Raw History Blame Contribute Delete
465 Bytes
echo "强制同步项目代码,忽略本地修改..."
git fetch --all
git reset --hard origin/$(git rev-parse --abbrev-ref HEAD)
echo "创建虚拟环境..."
PYTHON_VERSION=$(python -V 2>&1 | grep -oP '\d+\.\d+' | head -1)
if [ -n "$PYTHON_VERSION" ]; then
echo "检测到 Python $PYTHON_VERSION,固定版本..."
uv python pin "$PYTHON_VERSION"
fi
uv add -r requirements.txt
source .venv/bin/activate
pm2 start .venv/bin/python --name agy2api -- web.py