feat: 新增语音转文字(ASR)功能
- 后端:新增 /api/audio/transcribe 接口,调用 Ollama whisper 进行语音识别 - 前端:新增 AudioTranscribePage.vue 页面,支持 MP3/WAV/M4A/OGG/FLAC 等格式 - 注册路由、工具卡片、智能助手欢迎语更新 Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
@@ -81,7 +81,7 @@ from fastapi import FastAPI
|
||||
from app.api import auth, company_train, product, sales_train
|
||||
from app.api import exam, media, ai_chat, system
|
||||
|
||||
app = FastAPI(title="eaisalestrain_app", version="1.1.0")
|
||||
app = FastAPI(title="eai_agentplatform_app", version="1.1.0")
|
||||
|
||||
# 异常处理器
|
||||
@app.exception_handler(AppError)
|
||||
|
||||
@@ -80,7 +80,7 @@ location /api/ {
|
||||
|
||||
# 媒体文件预览(仅内部)
|
||||
location /media/ {
|
||||
alias /opt/eaisalestrain/backend/data/media/;
|
||||
alias /opt/eai_agentplatform/backend/data/media/;
|
||||
internal;
|
||||
}
|
||||
|
||||
@@ -95,8 +95,8 @@ services:
|
||||
mysql:
|
||||
image: mysql:8.0
|
||||
environment:
|
||||
MYSQL_DATABASE: eaisalestrain
|
||||
MYSQL_USER: eaisalestrain
|
||||
MYSQL_DATABASE: eai_agentplatform
|
||||
MYSQL_USER: eai_agentplatform
|
||||
MYSQL_PASSWORD: ${DB_PASSWORD}
|
||||
volumes:
|
||||
- mysql_data:/var/lib/mysql
|
||||
@@ -104,7 +104,7 @@ services:
|
||||
backend:
|
||||
build: ./backend
|
||||
environment:
|
||||
DATABASE_URL: mysql+pymysql://eaisalestrain:${DB_PASSWORD}@mysql:3306/eaisalestrain
|
||||
DATABASE_URL: mysql+pymysql://eai_agentplatform:${DB_PASSWORD}@mysql:3306/eai_agentplatform
|
||||
JWT_SECRET: ${JWT_SECRET}
|
||||
LLM_BASE_URL: http://llm-server:11434/v1
|
||||
volumes:
|
||||
|
||||
Reference in New Issue
Block a user