feat:助手首次改版

This commit is contained in:
R524809
2026-08-07 17:34:24 +08:00
parent f88b424301
commit 2083ad1954
29 changed files with 3817 additions and 0 deletions
Executable
+30
View File
@@ -0,0 +1,30 @@
#!/bin/zsh
# 双击本文件,或在终端执行:./start.command
cd "$(dirname "$0")"
if [[ ! -d .venv ]]; then
echo "未找到 .venv,正在创建并安装依赖…"
python3 -m venv .venv || exit 1
source .venv/bin/activate
pip install -r requirements.txt || exit 1
else
source .venv/bin/activate
fi
if [[ ! -f .env ]]; then
echo "未找到 .env,已从 .env.example 复制,请填入 DEEPSEEK_API_KEY 后再启动。"
cp .env.example .env
echo "按回车关闭…"
read -r
exit 1
fi
echo "启动中:http://127.0.0.1:8000/ozonSeller.html"
echo "按 Ctrl+C 可停止服务"
echo
uvicorn main:app --reload --reload-include '*.yaml' --host 127.0.0.1 --port 8000
echo
echo "服务已停止。按回车关闭窗口…"
read -r