From a50f2bb909bcbb272875a4258e2c4c79f4f3ad32 Mon Sep 17 00:00:00 2001 From: Teknium Date: Wed, 25 Mar 2026 08:19:43 -0700 Subject: [PATCH] fix(run_agent): reduce default stream read timeout for chat completions Updated the default stream read timeout from 120 seconds to 60 seconds in the AIAgent class, enhancing the timeout configuration for chat completions. This change aims to improve responsiveness during streaming operations. --- run_agent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run_agent.py b/run_agent.py index 6a388b5bf6..558ecba8ee 100644 --- a/run_agent.py +++ b/run_agent.py @@ -3587,7 +3587,7 @@ class AIAgent: """Stream a chat completions response.""" import httpx as _httpx _base_timeout = float(os.getenv("HERMES_API_TIMEOUT", 900.0)) - _stream_read_timeout = float(os.getenv("HERMES_STREAM_READ_TIMEOUT", 120.0)) + _stream_read_timeout = float(os.getenv("HERMES_STREAM_READ_TIMEOUT", 60.0)) stream_kwargs = { **api_kwargs, "stream": True,