fix: Abstürze erkennen, abgebrochene Streams melden, Messwerte und Speicher absichern, Startgrund nennen (#1273, #1274, #1275, #1276, #1277)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-02 14:47:33 +01:00
parent 54186593a8
commit 12347cd031
12 changed files with 419 additions and 49 deletions

View File

@ -121,6 +121,18 @@ impl ApiError {
)
}
/// #1275: mit dem Grund, den das Gateway selbst festgestellt hat (nie der Text der Engine).
pub fn start_failed(grund: &str) -> Self {
Self::new(
StatusCode::SERVICE_UNAVAILABLE,
"server_error",
"engine_unavailable",
format!(
"Das Modell konnte nicht gestartet werden: {grund}. Details stehen im Log des Gateways."
),
)
}
pub fn upstream() -> Self {
Self::new(
StatusCode::BAD_GATEWAY,