feat(app): wire chat module + LocalFS storage + LLM registry into app.New

This commit is contained in:
2026-05-04 19:37:14 +08:00
parent 7aa8456b1b
commit 8effeee063
3 changed files with 133 additions and 0 deletions
+28
View File
@@ -44,3 +44,31 @@ workspace:
# git CLI 配置(默认走 PATH 里的 git)
git:
binary: "git"
# Chat 模块(多模态对话 + LLM endpoints)
chat:
attachment:
# 单文件上限(MB)
max_file_size_mb: 20
# 单条消息中所有附件总和上限(MB)
max_message_size_mb: 50
# 允许的 MIME 类型白名单。"text/*" 通配任意 text/ 子类型。
mime_whitelist:
- image/png
- image/jpeg
- image/webp
- image/gif
- application/pdf
- text/*
stream:
# SSE ring buffer 在流结束后保留多久,方便前端断线重连。
ring_buffer_retention_seconds: 300
history:
# token 预算的安全余量百分比(5.0 表示在 (context_window - max_output) 上再保留 5%)
safety_margin_pct: 5.0
# 附件存储驱动(当前仅支持 localfs)。生产建议挂载到独立卷。
storage:
driver: "localfs"
localfs:
base_path: "./data/uploads"