2026-04-14 01:44:55 +08:00
|
|
|
|
# =============================================================================
|
|
|
|
|
|
# 环境变量配置模板
|
|
|
|
|
|
# 复制此文件为 .env 并填入真实值:cp .env.example .env
|
|
|
|
|
|
# =============================================================================
|
|
|
|
|
|
|
|
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
|
|
# AI 模型 API 密钥(必需)
|
|
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
# 智谱 AI API 密钥(用于在线模型调用 GLM-4.7-Flash)
|
|
|
|
|
|
# 获取地址: https://open.bigmodel.cn/
|
2026-04-14 02:02:42 +08:00
|
|
|
|
ZHIPUAI_API_KEY=4d568a4367f1442bbc226cc0daf84566.44SsKVWkVIM2Mkeg
|
2026-04-14 01:44:55 +08:00
|
|
|
|
|
|
|
|
|
|
# 本地 vLLM 服务认证 Token(用于本地 Gemma 模型调用)
|
|
|
|
|
|
# 如果使用本地 vLLM 容器,需要设置此值与 vLLM 容器的 --api-key 参数一致
|
|
|
|
|
|
VLLM_LOCAL_KEY=token-abc123
|
|
|
|
|
|
|
|
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
|
|
# 数据库配置(可选 - 代码中有默认值)
|
|
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
# PostgreSQL 数据库连接字符串
|
|
|
|
|
|
# Docker Compose 部署时使用服务名 'postgres':
|
|
|
|
|
|
# DB_URI=postgresql://postgres:mysecretpassword@postgres:5432/langgraph_db?sslmode=disable
|
|
|
|
|
|
|
|
|
|
|
|
# 本地开发时使用 localhost:
|
|
|
|
|
|
# DB_URI=postgresql://postgres:mysecretpassword@localhost:5432/langgraph_db?sslmode=disable
|
|
|
|
|
|
|
|
|
|
|
|
# 如果不设置,代码将使用默认值(Docker 环境指向 postgres 服务)
|