- 去掉 books/chapters CRUD、SQLAlchemy、SQLite 依赖 - 核心只剩 /api/tts + 智能分段 + 自动重试 - 新增 API_TOKEN 环境变量,管理接口 Bearer Token 鉴权 - 管理接口精简为 preview + config - 前端重写:TTS 试听 + 配置查看 + 接口文档 - Dockerfile/docker-compose 清理,去掉数据库卷
11 lines
343 B
Plaintext
11 lines
343 B
Plaintext
# 小米 MiMo TTS API Key(必填)
|
||
MIMO_API_KEY=your_api_key_here
|
||
|
||
# API 访问令牌(可选,设置后管理接口需要 Bearer Token)
|
||
# API_TOKEN=your_token_here
|
||
|
||
# 以下为可选配置(有默认值)
|
||
# MIMO_API_ENDPOINT=https://api.xiaomimimo.com/v1/chat/completions
|
||
# MIMO_TTS_MODEL=mimo-v2-audio-tts
|
||
# MIMO_VOICE=mimo_default
|