#!/bin/bash echo "🚀 启动 Ai Server..." if [ ! -f "./.venv/bin/activate" ]; then echo "❌ 未找到虚拟环境: ./.venv/bin/activate" exit 1 fi # 激活虚拟环境 source ./.venv/bin/activate # 运行主程序 uvicorn app.main:app --reload --port 8000