2026-03-11 16:29:31 +08:00
|
|
|
|
# =============================================================================
|
2026-05-22 13:44:50 +08:00
|
|
|
|
# Life Echo API — 环境变量(仅 secrets + bootstrap)
|
2026-03-23 13:21:07 +08:00
|
|
|
|
#
|
2026-05-22 13:44:50 +08:00
|
|
|
|
# 非密钥配置 SSOT:config/default.toml + config/{APP_ENV}.toml
|
|
|
|
|
|
# 详见 docs/configuration.md
|
2026-03-11 16:29:31 +08:00
|
|
|
|
# =============================================================================
|
|
|
|
|
|
|
2026-05-22 13:44:50 +08:00
|
|
|
|
# ── Bootstrap ─────────────────────────────────────────────────
|
|
|
|
|
|
APP_ENV=development
|
2026-05-08 17:28:31 +08:00
|
|
|
|
DATABASE_URL=postgresql://postgres:postgres@localhost:48291/life_echo
|
|
|
|
|
|
REDIS_URL=redis://localhost:48307/0
|
2026-05-22 13:44:50 +08:00
|
|
|
|
# 可选:Redis 密码(应用会自动注入 URL;本地 dev 通常留空)
|
|
|
|
|
|
# REDIS_PASSWORD=
|
|
|
|
|
|
# 可选:覆盖 Celery broker/backend URL(默认自动使用 REDIS_URL 的 DB+1)
|
|
|
|
|
|
# CELERY_REDIS_URL=redis://localhost:48307/1
|
feat(eval): memoir A/B chapter judging and eval-web parity with dialogue
- Judge baseline excerpt and library chapter separately; build_memoir_compare_summary for gate, nine-dim and leaf deltas.
- Memoir SSE chapter payload: baseline_judge, compare_summary, baseline_judge_error.
- MemoirJudgeOutput: loose score coercion and post-validate clamp; memoir judge prompt caps from settings.
- app-eval-web: two-column MemoirScoreCard layout, MemoirCompareSummary, chapter blocks and CSS.
- Add memoir_compare_summary, log_events, celery_log_context, memoir_pipeline_progress; tests and migration 0014.
- Misc: memory/evidence and enrichment paths, task/orchestrator updates, internal-eval docs, env examples.
2026-04-10 10:23:43 +08:00
|
|
|
|
|
2026-05-22 13:44:50 +08:00
|
|
|
|
# Flower(docker-compose.yml 生产栈,仅 localhost:5555)
|
|
|
|
|
|
# FLOWER_USER=admin
|
|
|
|
|
|
# FLOWER_PASSWORD=changeme
|
2026-04-10 16:44:26 +08:00
|
|
|
|
|
2026-05-22 13:44:50 +08:00
|
|
|
|
# ── Auth secret ───────────────────────────────────────────────
|
|
|
|
|
|
# 生产/staging 务必:openssl rand -hex 32
|
2026-03-11 16:29:31 +08:00
|
|
|
|
SECRET_KEY=replace_with_a_strong_random_secret
|
|
|
|
|
|
|
2026-05-22 13:44:50 +08:00
|
|
|
|
# ── LLM / Embedding 密钥 ─────────────────────────────────────
|
|
|
|
|
|
DEEPSEEK_API_KEY=your_deepseek_api_key
|
|
|
|
|
|
ZHIPU_API_KEY=your_zhipu_api_key
|
2026-03-11 16:29:31 +08:00
|
|
|
|
|
2026-05-22 13:44:50 +08:00
|
|
|
|
# ── 腾讯云凭证(SMS / ASR / TTS / COS 共用)──────────────────
|
|
|
|
|
|
TENCENT_SECRET_ID=your_tencent_secret_id
|
|
|
|
|
|
TENCENT_SECRET_KEY=your_tencent_secret_key
|
2026-03-19 09:58:02 +08:00
|
|
|
|
|
2026-05-22 13:44:50 +08:00
|
|
|
|
# ── WeChat Pay 密钥 ───────────────────────────────────────────
|
2026-03-11 16:29:31 +08:00
|
|
|
|
WECHAT_PAY_API_V3_KEY=your_wechat_api_v3_key
|
2026-05-22 13:44:50 +08:00
|
|
|
|
# WECHAT_PAY_PRIVATE_KEY= # 或使用 WECHAT_PAY_PRIVATE_KEY_PATH(见 config/*.toml deploy)
|
2026-03-11 16:29:31 +08:00
|
|
|
|
|
2026-05-22 13:44:50 +08:00
|
|
|
|
# ── Alipay 密钥(未接入可留空)────────────────────────────────
|
2026-04-10 16:44:26 +08:00
|
|
|
|
ALIPAY_PRIVATE_KEY=
|
|
|
|
|
|
ALIPAY_PUBLIC_KEY=
|
2026-03-11 16:29:31 +08:00
|
|
|
|
|
2026-05-22 13:44:50 +08:00
|
|
|
|
# ── Liblib 密钥(memoir image,见 config deploy.memoir_image_enabled)────
|
2026-03-11 16:29:31 +08:00
|
|
|
|
LIBLIB_ACCESS_KEY=your_liblib_access_key
|
|
|
|
|
|
LIBLIB_SECRET_KEY=your_liblib_secret_key
|
|
|
|
|
|
|
2026-05-22 13:44:50 +08:00
|
|
|
|
# ── Internal evaluation API(可选)────────────────────────────
|
|
|
|
|
|
INTERNAL_EVAL_API_KEY=
|
|
|
|
|
|
|
|
|
|
|
|
# ── Docker Compose 端口(非 Settings,见 docker-compose.yml)──
|
|
|
|
|
|
# LIFE_ECHO_API_HOST_PORT=8000
|