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: