Remove redundant main.py in api

This commit is contained in:
Xin Wang
2026-02-08 16:23:37 +08:00
parent eed3ee824f
commit c563b13fbf
3 changed files with 8 additions and 122 deletions

View File

@@ -25,7 +25,7 @@ python init_db.py
```bash
# 开发模式 (热重载)
python -m uvicorn main:app --reload --host 0.0.0.0 --port 8100
python -m uvicorn app.main:app --reload --host 0.0.0.0 --port 8100
```
服务运行在: http://localhost:8100
@@ -65,18 +65,18 @@ curl http://localhost:8100/api/history
| | | PUT | 更新声音 |
| | | DELETE | 删除声音 |
| | `/api/voices/{id}/preview` | POST | 预览声音 |
| **LLM Models** | `/api/models/llm` | GET | LLM 模型列表 |
| **LLM Models** | `/api/llm` | GET | LLM 模型列表 |
| | | POST | 添加模型 |
| | `/api/models/llm/{id}` | GET | 模型详情 |
| | `/api/llm/{id}` | GET | 模型详情 |
| | | PUT | 更新模型 |
| | | DELETE | 删除模型 |
| | `/api/models/llm/{id}/test` | POST | 测试模型连接 |
| **ASR Models** | `/api/models/asr` | GET | ASR 模型列表 |
| | `/api/llm/{id}/test` | POST | 测试模型连接 |
| **ASR Models** | `/api/asr` | GET | ASR 模型列表 |
| | | POST | 添加模型 |
| | `/api/models/asr/{id}` | GET | 模型详情 |
| | `/api/asr/{id}` | GET | 模型详情 |
| | | PUT | 更新模型 |
| | | DELETE | 删除模型 |
| | `/api/models/asr/{id}/test` | POST | 测试识别 |
| | `/api/asr/{id}/test` | POST | 测试识别 |
| **History** | `/api/history` | GET | 通话历史列表 |
| | `/api/history/{id}` | GET | 通话详情 |
| | | PUT | 更新通话记录 |
@@ -213,7 +213,6 @@ api/
├── requirements.txt
├── .env
├── init_db.py
├── main.py
└── docker-compose.yml
```