Initial commit: Pixel AI comic/video creation platform
- FastAPI backend with SQLModel, Alembic migrations, AgentScope agents - Next.js 15 frontend with React 19, Tailwind, Zustand, React Flow - Multi-provider AI system (DashScope, Kling, MiniMax, Volcengine, OpenAI, etc.) - All HTTP clients migrated from sync requests to async httpx - Admin-managed API keys via environment variables - SSRF vulnerability fixed in ensure_url()
This commit is contained in:
49
backend/服务架构图.md
Normal file
49
backend/服务架构图.md
Normal file
@@ -0,0 +1,49 @@
|
||||
# 服务架构图
|
||||
|
||||
## 概览
|
||||
|
||||
```
|
||||
┌─────────────────────────────────────────────────────────────────────┐
|
||||
│ API 控制器 │
|
||||
│ (src/controllers/projects.py, skills.py, generations/script.py) │
|
||||
└────────────────┬────────────────────────────────┬───────────────────┘
|
||||
│ │
|
||||
▼ ▼
|
||||
┌────────────────────────┐ ┌────────────────────────┐
|
||||
│ script_service │ │ AgentScopeService │
|
||||
│ (script/service.py) │ │ (agents/service.py) │
|
||||
└────────────┬───────────┘ └────────────┬───────────┘
|
||||
│ │
|
||||
▼ ▼
|
||||
┌────────────────────────┐ ┌────────────────────────┐
|
||||
│ ScriptAnalysisPipeline │ │ AgentsToolkit │
|
||||
│ (script/pipeline.py) │ │ (agents/toolkit_mgr) │
|
||||
└────────────────────────┘ └────────────┬───────────┘
|
||||
│
|
||||
▼
|
||||
┌────────────────────────┐
|
||||
│ 技能(共10个) │
|
||||
│ - general/ (3个) │
|
||||
│ - film_production/ (7)│
|
||||
└────────────────────────┘
|
||||
```
|
||||
|
||||
## 服务对比矩阵
|
||||
|
||||
| 特性 | script_service | script_agent | agents |
|
||||
|---------|---------------|--------------|--------|
|
||||
| **用途** | 小说分析 | 影视制作 | 通用智能体 |
|
||||
| **架构** | Map-Reduce | 多智能体 | Toolkit + Skills |
|
||||
| **速度** | ⚡⚡⚡ 快 | 🐌 慢 | ⚡⚡ 中等 |
|
||||
| **输出质量** | ⭐⭐ 良好 | ⭐⭐⭐ 优秀 | ⭐⭐ 良好 |
|
||||
| **复杂度** | 低 | 高 | 中等 |
|
||||
| **Token 使用** | 中等 | 高 | 低(按需) |
|
||||
| **生产使用** | ✅ 是 | ❌ 否(仅测试) | ✅ 是 |
|
||||
| **AgentScope** | ❌ 否 | ✅ 是(官方) | ✅ 是(官方) |
|
||||
| **技能** | 无 | 7个(影视) | 10个(通用+影视) |
|
||||
| **智能体** | 通用 | 9个专业 | 可配置 |
|
||||
|
||||
---
|
||||
|
||||
**最后更新**: 2026-02-09
|
||||
**状态**: 当前架构已记录 ✅
|
||||
Reference in New Issue
Block a user