From 85a744ac7bce0b0acaf9c3420836f5773c7770bc Mon Sep 17 00:00:00 2001 From: Hitonabi Date: Mon, 13 Jul 2026 22:54:57 +0200 Subject: [PATCH] =?UTF-8?q?Faden=2011-Fix:=20ASCII=20im=20Routing-Header?= =?UTF-8?q?=20(kein=20'=E2=86=92'=20->=20latin-1-500)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bild-Request loeste HTTP 500: HTTP-Header muessen latin-1 sein, das '→' (U+2192) im x-mc-route-reason war nicht kodierbar. Die Weiche selbst routete korrekt (VL-30B lud). Pfeil auf '->' geaendert. Co-Authored-By: Claude Opus 4.8 --- backend/routers/gateway_proxy.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/routers/gateway_proxy.py b/backend/routers/gateway_proxy.py index e75a807..0e25ccb 100644 --- a/backend/routers/gateway_proxy.py +++ b/backend/routers/gateway_proxy.py @@ -108,7 +108,8 @@ async def _proxy(path: str, request: Request): if vision_alias and alias not in VISION_CAPABLE and has_image(body): alias = vision_alias body["model"] = alias - routed = {"x-mc-routed-to": alias, "x-mc-route-reason": "Bild erkannt → Vision-Modell", + # HTTP-Header-Werte muessen latin-1 sein — kein '→' o.ae. (sonst 500, 13.07.). + routed = {"x-mc-routed-to": alias, "x-mc-route-reason": "Bild erkannt -> Vision-Modell", "x-mc-lane": routed.get("x-mc-lane", "-")} # fast-Spur: Thinking aus für flotte Antworten (sofern Client es nicht selbst setzt). if pol["fast_no_think"] and alias == pol["fast"] and "chat_template_kwargs" not in body: