feat: 添加文字输入对话功能

- 后端 WsQuery 添加 text 字段,支持文本输入模式
- Pipeline 支持文本查询时跳过 STT 直接使用输入文本
- 前端 ChatPanel 添加文字输入框,连接状态下可用
- useVisionSession 添加 sendTextMessage 方法
- 更新接口文档,添加文本输入模式说明
This commit is contained in:
2026-06-14 12:52:39 +08:00
parent 563ca12790
commit 51ed6aa563
8 changed files with 252 additions and 73 deletions

View File

@@ -55,6 +55,7 @@ type WsQuery struct {
RequestID string `json:"request_id"`
Image string `json:"image"` // base64
Audio string `json:"audio"` // base64
Text string `json:"text"` // 用户手动输入的文本(有值时跳过 STT
MimeType string `json:"mime_type"` // 默认 "audio/pcm"
}