Files
ailine/.env.example
root e81663ab0b
Some checks failed
构建并部署 AI Agent 服务 / deploy (push) Failing after 1m16s
fix: 添加健康检查端点和 Secrets 验证步骤
2026-04-14 02:02:42 +08:00

30 lines
1.4 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# =============================================================================
# 环境变量配置模板
# 复制此文件为 .env 并填入真实值cp .env.example .env
# =============================================================================
# -----------------------------------------------------------------------------
# AI 模型 API 密钥(必需)
# -----------------------------------------------------------------------------
# 智谱 AI API 密钥(用于在线模型调用 GLM-4.7-Flash
# 获取地址: https://open.bigmodel.cn/
ZHIPUAI_API_KEY=4d568a4367f1442bbc226cc0daf84566.44SsKVWkVIM2Mkeg
# 本地 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 服务)