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,