feat(ui): Playground liest Antworten vor (Sprachmodell, Stimme, Vorlesen-Knopf) (#1100)

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 20:15:24 +01:00
parent d21f8d871f
commit 3049d063ca
6 changed files with 320 additions and 17 deletions

View File

@ -86,6 +86,29 @@ pub(crate) async fn forward(
.await
}
/// Sprachausgabe für den Playground der Oberfläche (dieselbe Zuteilung und Protokollierung wie die API).
pub(crate) async fn forward_speech(
state: Arc<AppState>,
key: &ApiKeyRecord,
priority: Priority,
slot: AccessSlot,
correlation: String,
started: std::time::Instant,
body: Bytes,
) -> Result<Response, ApiError> {
forward_to(
"/v1/audio/speech",
state,
key,
priority,
slot,
correlation,
started,
body,
)
.await
}
/// Wie `forward`, an einen anderen Pfad der Engine (Chat oder Sprachausgabe).
#[allow(clippy::too_many_arguments)]
async fn forward_to(