From 0c8f647e9cc63e5c2ea700a8ae11c6c6db612124 Mon Sep 17 00:00:00 2001 From: Rod Boev Date: Sun, 12 Jul 2026 19:00:39 -0400 Subject: [PATCH] fix(#5940): drop unused gateway error adapter --- api/gateway_chat.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/api/gateway_chat.py b/api/gateway_chat.py index d1c85740..60341a3c 100644 --- a/api/gateway_chat.py +++ b/api/gateway_chat.py @@ -45,16 +45,6 @@ _WEBUI_GATEWAY_USE_RUNS_API_ENV = "HERMES_WEBUI_GATEWAY_USE_RUNS_API" _GATEWAY_CHAT_BACKENDS = {"gateway", "api_server", "api-server"} -def _gateway_provider_error_payload(message: str) -> dict: - from api.streaming import _classify_provider_error, _provider_error_payload - - classification = _classify_provider_error(message) - return _provider_error_payload( - message, - classification["type"], - classification.get("hint", ""), - ) - # Total byte-silence budget (seconds) for the gateway SSE socket, applied via # ``urlopen(timeout=...)``. A stream that emits ANY byte within the window never # trips it, so a genuinely alive (if slow) token stream is untouched; only more