From 07b2c9d5a9eac12fc1d85b05ec1af2baea35c8dd Mon Sep 17 00:00:00 2001 From: KoalaTrapLord <265133236+KoalaTrapLord@users.noreply.github.com> Date: Tue, 24 Mar 2026 20:43:36 -0400 Subject: [PATCH] fix: add missing LLM_TIMEOUT constant in coach.py LLM_TIMEOUT was referenced but never defined, causing a NameError in the Ollama streaming SSE code path when COACH_PROVIDER != 'perplexity'. --- routes/coach.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/routes/coach.py b/routes/coach.py index 48e94d9..84e2afa 100644 --- a/routes/coach.py +++ b/routes/coach.py @@ -40,6 +40,8 @@ from services.logging import log_coach, log_deckgen import httpx from coach.config import COACH_PROVIDER, PPLX_MODEL +LLM_TIMEOUT = 120 # seconds + router = APIRouter(tags=["coach"])