From 651f1b74a637aa1ca2ad7d2e0b063741ddf7351a Mon Sep 17 00:00:00 2001 From: Kasper Date: Tue, 20 Jan 2026 11:55:00 +0100 Subject: [PATCH] chore: long timeout for non-local LLM --- src/control_backend/agents/llm/llm_agent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/control_backend/agents/llm/llm_agent.py b/src/control_backend/agents/llm/llm_agent.py index 8d81249..ca7d5f6 100644 --- a/src/control_backend/agents/llm/llm_agent.py +++ b/src/control_backend/agents/llm/llm_agent.py @@ -212,7 +212,7 @@ class LLMAgent(BaseAgent): :yield: Raw text tokens (deltas) from the SSE stream. :raises httpx.HTTPError: If the API returns a non-200 status. """ - async with httpx.AsyncClient() as client: + async with httpx.AsyncClient(timeout=httpx.Timeout(20.0)) as client: async with client.stream( "POST", settings.llm_settings.local_llm_url,