优化welcome页文件上传相关逻辑

This commit is contained in:
2026-09-21 20:54:18 +08:00
parent 33d9f4b834
commit 011c3ac436
6 changed files with 99 additions and 69 deletions
+2
View File
@@ -92,10 +92,12 @@ agent:
# 大图上传预处理:图片超过 threshold_kb(默认 1.5M)时,浏览器端询问是否压缩;
# 同意后在用户本地 canvas 压缩(长边 ≤ image_max_dim,JPEG image_quality)再上传。
# confirm_size_mb:任意文件最终体积超过该值时再弹一次「继续上传」确认(multer 硬限 50M 不变)。
upload:
image_compress_threshold_kb: 1536
image_max_dim: 2000
image_quality: 0.85
confirm_size_mb: 10
# 模型保持占用(held)租约:AI 答完后不立即释放模型,用户追问可直接复用。
# 页面无人观看超过 idle_release_ms 释放;有人观看最长保持 active_max_ms;sweep_ms 巡检间隔。