24 Commits

Author SHA1 Message Date
Your Name
be5b9aef12 chore: sync latest workspace changes
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
2026-04-05 02:08:26 +08:00
Your Name
12583cdd10 feat: sync latest canvas and media updates
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
2026-03-06 17:31:32 +08:00
Your Name
2a40607fc1 fix(scene-fusion): strengthen random-bg replacement, UI actions, and gallery persistence
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
2026-03-06 00:56:42 +08:00
Your Name
5e155ecf3c fix: reduce 504 via async polling and chat keepalive
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
2026-03-04 20:00:37 +08:00
Your Name
f6979f0196 feat: 完善无限画布3D生成与实时画布能力
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
2026-02-28 22:33:16 +08:00
Your Name
6a2cbb1b49 feat: use image URLs instead of Base64 for canvas image operations
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
- Modified ImageNode to upload images to storage bucket before use
- Updated RMBG API to support imageUrl parameter (fetch from URL and convert to Base64 internally)
- Updated Enhance API to support imageUrl parameter
- Updated canvas service layer to use imageUrl for all image processing APIs
- All processed images are saved to storage bucket and user gallery
2026-01-24 20:58:15 +08:00
Your Name
00b167909f 修改Real-ESRGAN备用API为URL方式调用
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
变更:
- 改为先上传原图到S3获取URL
- 使用/upscale/url接口而非/upscale/base64
- URL方式传输效率更高,适合大图处理
- Real-ESRGAN API会自动处理并返回处理后的S3 URL
2026-01-04 16:04:09 +08:00
Your Name
88ac9e2a46 添加备用变清晰API (Real-ESRGAN)
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
功能:
- 在系统设置中添加备用API配置选项
- 支持管理员切换使用主API或备用Real-ESRGAN API
- 备用API使用Base64方式发送图片
- 支持配置放大倍数(2x/4x/8x)和模型选择

Real-ESRGAN API特点:
- 基于深度学习的图像超分辨率模型
- 支持RealESRGAN_x2plus/x4plus/x8plus模型
- 支持动漫视频模型
- 处理时间1-10秒

后台切换对前端用户透明无感知
2026-01-04 15:50:38 +08:00
Your Name
1802614e5c 添加图片变清晰功能调试日志和验证
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
- 添加详细的外部API返回数据日志
- 对比原图和处理后图片大小,检测是否返回原图
- 添加下载URL验证逻辑
- 确认原图上传时没有压缩处理(直接上传外部API返回的图片)
- 添加图片大小变化百分比日志
- 如果外部API返回原图会发出警告

用于诊断:用户下载的图片是否是处理后的图片
2026-01-02 21:03:54 +08:00
Your Name
00b8755838 修复路由冲突:删除重复的 detect-object 路由
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
Next.js 16.1.1 不允许重复路由。
删除 app/(chat)/api/detect-object/route.ts,保留 app/api/detect-object/route.ts 作为主要API路由。
2026-01-01 12:38:55 +08:00
Your Name
c68c1a1964 fix: 修复enhance API中image字段可能是base64字符串而非URL的问题,添加URL验证
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
2025-12-29 02:03:36 +08:00
Your Name
f239642716 fix: 修复FormData Buffer转换时chunk类型错误,确保所有chunk都转换为Buffer
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
2025-12-29 01:59:31 +08:00
Your Name
477d84accc fix: 修复FormData stream未触发的问题,使用pipe触发stream读取
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
2025-12-29 01:56:38 +08:00
Your Name
4d50509cf7 debug: 添加FormData Buffer转换完成的日志
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
2025-12-29 01:53:25 +08:00
Your Name
e9cbca3042 debug: 添加轮询进度日志,监控任务处理状态
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
2025-12-29 01:50:18 +08:00
Your Name
4e4c5e6bba debug: 添加请求体处理步骤的调试日志
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
2025-12-29 01:47:02 +08:00
Your Name
e3f15b8bef debug: 添加更多enhance API调试日志
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
2025-12-29 01:44:44 +08:00
Your Name
b64cefccb5 debug: 添加enhance API请求追踪日志
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
2025-12-29 01:42:12 +08:00
Your Name
bacac837bd fix: 增加enhance API的超时时间,解决499错误(客户端关闭连接)
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
2025-12-29 01:29:23 +08:00
Your Name
05ea65964b refactor: 根据官方示例重写enhance API,使用异步模式(创建任务+轮询)
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
2025-12-29 01:21:48 +08:00
Your Name
94c45bbc4e fix: 修复ArrayBuffer类型错误,使用Uint8Array替代
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
2025-12-29 01:18:04 +08:00
Your Name
73690e7434 fix: 修复FormData Buffer转换问题
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
2025-12-29 01:14:49 +08:00
Your Name
d12e831f93 fix: 修复变清晰API中FormData的使用 - 使用form-data包并正确处理Buffer转换
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
2025-12-29 01:08:17 +08:00
Your Name
e9ceedb3bf feat: 添加图片变清晰功能
- 创建 /api/enhance 路由,实现图片变清晰API集成
- 在图片标注组件中添加变清晰按钮(Sparkles图标)
- 在相册页面添加变清晰按钮
- 系统设置:将抠图设置改名为本地AI设置,添加变清晰API配置
- 支持同步和异步两种模式
- 自动上传到S3存储桶并保存到数据库
- 在相册和出图记录中显示处理后的图片
2025-12-29 00:33:12 +08:00