feat: Sprachausgabe über das Gateway (POST /v1/audio/speech, Adapter tts für das Qwen3-TTS Studio) (#1060)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GmHhg3Td16J38kAyDLzb39
This commit is contained in:
2026-11-17 19:44:56 +01:00
parent bdca8e0054
commit 9dd8037b64
17 changed files with 493 additions and 12 deletions

View File

@ -1,7 +1,7 @@
//! OpenAI-kompatible HTTP-API und Gateway-Endpunkte (Spezifikation, Abschnitt 7).
//!
//! Stand M2.3: `GET /v1/models`, `GET /v1/models/{id}`,
//! `POST /v1/chat/completions` (mit SSE-Streaming), `GET /gateway/v1/health`,
//! `POST /v1/chat/completions` (mit SSE-Streaming), `POST /v1/audio/speech` (Sprachausgabe), `GET /gateway/v1/health`,
//! API-Key-Authentifizierung und das OpenAI-Fehlerformat. Weitere Endpunkte
//! (Completions, Embeddings, Bilder) und die Gateway-Verwaltung folgen später.
//!
@ -49,6 +49,7 @@ pub fn router(state: Arc<AppState>) -> Router {
.route("/v1/models", get(models::list))
.route("/v1/models/{id}", get(models::retrieve))
.route("/v1/chat/completions", post(chat::completions))
.route("/v1/audio/speech", post(chat::speech))
.route("/gateway/v1/health", get(health))
.route("/gateway/v1/metrics", get(metrics_endpoint))
.route("/gateway/v1/status", get(status_endpoint))