From 14c8984ed20f8f1709aa38f0139f6f1273c2319d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CNaeel=E2=80=9D?= Date: Sun, 14 Jun 2026 07:51:06 +0400 Subject: [PATCH] =?UTF-8?q?debug(llm):=20=D0=BF=D0=BE=D0=BA=D0=B0=D0=B7?= =?UTF-8?q?=D0=B0=D1=82=D1=8C=20HTTP-=D0=B2=D0=B5=D1=80=D1=81=D0=B8=D1=8E?= =?UTF-8?q?=20=D0=B2=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BA=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- site/llm_client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/site/llm_client.py b/site/llm_client.py index 6554394..98672e3 100644 --- a/site/llm_client.py +++ b/site/llm_client.py @@ -63,7 +63,8 @@ def ask(prompt: str, model: str = None, max_tokens: int = 8000) -> dict: } except httpx.HTTPStatusError as e: - return {"error": f"LLM HTTP {e.response.status_code}: {e.response.text[:500]}"} + http_ver = e.response.http_version if hasattr(e.response, 'http_version') else '?' + return {"error": f"LLM HTTP {e.response.status_code} (HTTP/{http_ver}): {e.response.text[:500]}"} except httpx.TimeoutException: return {"error": "LLM timeout"} except Exception as e: