feat: 新增语音/图像识别能力(媒体会话、识别接口与路由)

识别只返回文本,不投递、不落库:语音支持 mp3/aac/wav/pcm,WebM 先按文件头识别再转 PCM;图片走 qwen-vl-ocr。新增 /health/ai/asr 与 /health/ai/ocr,登录后按用户限流 20 次/分钟,并对 /health/ai/ 前缀放宽请求体上限。
This commit is contained in:
lik
2026-10-31 17:02:42 +08:00
parent c4f6be6494
commit 8c6feaf42d
11 changed files with 2344 additions and 1 deletions
+1
View File
@@ -10,6 +10,7 @@
"test": "node --test test/*.test.js"
},
"dependencies": {
"@audio/decode-webm": "^1.6.1",
"@langchain/anthropic": "^1.5.9",
"@langchain/core": "^1.2.9",
"@langchain/deepseek": "^1.1.11",