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:
@ -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(
|
||||
|
||||
Reference in New Issue
Block a user