修改--修改接口文档code和时间计划

This commit is contained in:
haotian 2025-02-20 14:06:26 +08:00
parent b00e6dac71
commit c89d1907a4
2 changed files with 38 additions and 37 deletions

View File

@ -476,31 +476,7 @@ Response:
}
}
```
### 2.8 获取训练状态
```http
GET /api/train/status/{task_id}
Response:
{
"status": "success",
"task": {
"id": "train_20230820_001",
"status": "running",
"progress": 0.75,
"current_epoch": 15,
"total_epochs": 20,
"metrics": {
"train_loss": 0.234,
"val_loss": 0.245
},
"start_time": "2023-08-20T10:00:00",
"estimated_completion": "2023-08-20T10:30:00"
}
}
```
### 2.9 模型预测
### 2.8 模型预测
```http
POST /api/model/predict
Content-Type: application/json
@ -705,7 +681,30 @@ Error Response:
}
```
### 3.3 获取系统日志
### 3.3 获取系统中训练状态
```http
GET /api/train/status/{task_id}
Response:
{
"status": "success",
"task": {
"id": "train_20230820_001",
"status": "running",
"progress": 0.75,
"current_epoch": 15,
"total_epochs": 20,
"metrics": {
"train_loss": 0.234,
"val_loss": 0.245
},
"start_time": "2023-08-20T10:00:00",
"estimated_completion": "2023-08-20T10:30:00"
}
}
```
### 3.4 获取系统日志
```http
GET /api/system/logs?level=error&start_time=2023-08-20T00:00:00

View File

@ -10,14 +10,22 @@
- 20250219~20250220
- [x] 实现模型训练和注册 完成
- [x] 实现获取已有模型 完成
- [ ] 根据删除模型
- [ ] 根据已有模型加载模型预测
- [x] 根据删除模型
- [x] 根据已有模型加载模型预测
- 2天
- 试着进行模型优化
- AI 辅助开发
## 4. FastAPI后端服务 (2)
## 4. 监控系统 (1)
- 20250226
- [ ] 资源监控
- [ ] 训练监控
- [ ] 告警系统
- [ ] 日志聚合
- 1 天
## 5. FastAPI后端服务 (2)
- 20250221~20250224
- [ ] API路由设计
- [ ] 请求/响应模型
@ -25,7 +33,7 @@
- [ ] API文档生成
- 2天
## 5. 任务队列系统 (2)
## 6. 任务队列系统 (2)
- 20250225~20250226
- [ ] Celery配置
- [ ] 任务定义
@ -33,13 +41,7 @@
- [ ] 错误处理
- 2天
## 6. 监控系统 (1)
- 20250226
- [ ] 资源监控
- [ ] 训练监控
- [ ] 告警系统
- [ ] 日志聚合
- 1 天
## 7.整体测试及完善(1)
- 20250227
- 1天