添加长期记忆
All checks were successful
构建并部署 AI Agent 服务 / deploy (push) Successful in 27s

This commit is contained in:
2026-04-14 17:34:12 +08:00
parent 1bea2491c5
commit 8dd94c6c19
12 changed files with 953 additions and 197 deletions

32
.env
View File

@@ -1,3 +1,33 @@
# =============================================================================
# 本地开发环境配置
# 用于 python app/backend.py 和 streamlit run frontend/frontend.py
# =============================================================================
# -----------------------------------------------------------------------------
# AI 模型 API 密钥
# -----------------------------------------------------------------------------
ZHIPUAI_API_KEY=4d568a4367f1442bbc226cc0daf84566.44SsKVWkVIM2Mkeg
DEEPSEEK_API_KEY=sk-e74b13ac778f4b7eb29afa418a14421e
VLLM_LOCAL_KEY=token-abc123
EOF
# -----------------------------------------------------------------------------
# vLLM 服务配置
# -----------------------------------------------------------------------------
# 本地开发时vLLM 通常在 localhost 运行
VLLM_BASE_URL=http://localhost:8000/v1
# -----------------------------------------------------------------------------
# 数据库配置
# -----------------------------------------------------------------------------
# 本地开发时,数据库在 localhost 运行
DB_URI=postgresql://postgres:mysecretpassword@localhost:5432/langgraph_db?sslmode=disable
# -----------------------------------------------------------------------------
# 前端配置
# -----------------------------------------------------------------------------
# 本地开发时,后端也在 localhost 运行
API_URL=http://localhost:8001/chat
# 本地开发 - 显示所有调试信息
LOG_LEVEL=DEBUG
DEBUG=true