feat: support both JSON and form-urlencoded body; change default port to 3333

This commit is contained in:
TTS Service
2026-03-27 13:52:11 +08:00
parent 6c5caa308d
commit 4b5797575d
4 changed files with 32 additions and 22 deletions

View File

@@ -5,13 +5,13 @@ services:
build: .
container_name: tts-book-service
ports:
- "17200:17200"
- "3333:3333"
environment:
- MIMO_API_KEY=${MIMO_API_KEY}
- MIMO_API_ENDPOINT=${MIMO_API_ENDPOINT:-https://api.xiaomimimo.com/v1/chat/completions}
- MIMO_TTS_MODEL=${MIMO_TTS_MODEL:-mimo-v2-audio-tts}
- MIMO_VOICE=${MIMO_VOICE:-mimo_default}
- SERVER_PORT=17200
- SERVER_PORT=3333
volumes:
- tts-data:/app/data
- tts-audio:/app/audio