Enhance API documentation by adding new endpoints for ASR preview, assistant configuration retrieval, and knowledge base management. Update existing assistant and tool definitions for improved clarity and functionality. Remove outdated sections from history records documentation, ensuring a streamlined reference for users.

This commit is contained in:
Xin Wang
2026-03-02 01:56:38 +08:00
parent 1561056a3d
commit 531688aa6b
9 changed files with 829 additions and 135 deletions

View File

@@ -279,6 +279,36 @@ POST /api/v1/asr/{id}/transcribe
---
### 8. 预览 ASR (上传音频文件)
```http
POST /api/v1/asr/{id}/preview
```
上传音频文件进行识别预览。
**Request (multipart/form-data):**
| 参数 | 类型 | 必填 | 说明 |
|------|------|------|------|
| file | file | 是 | 音频文件 (audio/* | string | 否 | 指定语言,覆盖) |
| language模型配置 |
| api_key | string | 否 | 覆盖模型配置的 API Key |
**Response:**
```json
{
"success": true,
"transcript": "您好,请问有什么可以帮助您?",
"language": "zh",
"confidence": 0.95,
"latency_ms": 1500
}
```
---
## Schema 定义
```python