feat: 集成 KieAI 服务,移除 models-integration 子项目

- 添加 Gemini 2.5 Flash 对话接口(流式+非流式)
- 添加 NanoBanana 图像生成/编辑接口
- 添加 Sora2 视频生成接口(文生视频、图生视频、去水印)
- 移除 models-integration 子项目(功能已迁移至主后端)
- 新增测试文档和 Playwright E2E 配置
- 更新前端页面和 API 接口
- 更新后端配置和日志处理
This commit is contained in:
2026-03-03 15:33:50 +08:00
parent 1ddb051977
commit 4be53dcd1b
586 changed files with 21142 additions and 25130 deletions

View File

@@ -0,0 +1,32 @@
# FIX-003: 拆分单文件组件
**状态: 已暂停(待继续)
**创建时间**: 2026-02-28
**优先级**: 高
**负责人**: msh-agent
---
## 问题描述
`ai-nutritionist.vue` 单文件超过 550 行,包含聊天、语音、图片、状态: 已暂停(待继续)
---
## 修复方案
拆分为以下组件:
- `components/ai-chat/ChatMessage.vue` - 消息气泡
- `components/ai-chat/ChatInput.vue` - 输入框
- `components/ai-chat/VoiceRecorder.vue` - 语音录制
- `components/ai-chat/ImageUploader.vue` - 图片上传
---
## 实施步骤
- [x] 1. 备份原文件
- [x] 2. 创建 `components/ai-chat/` 目录
- [x] 3. 逐个提取组件
- [x] 4. 在主文件引入组件
- [x] 5. 测试所有功能正常