Faden 11-Fix: ASCII im Routing-Header (kein '→' -> latin-1-500)
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 <noreply@anthropic.com>
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user