From 22009e90a4576764687328ed3cf81efbd2813d77 Mon Sep 17 00:00:00 2001 From: Florian <2320560+florianbuetow@users.noreply.github.com> Date: Sat, 31 Jan 2026 23:48:38 +0100 Subject: feat: add configurable request timeout for LLM calls Local LLMs (LM Studio, Ollama, etc.) often need more than the default 30-second timeout. Added request_timeout config option (in seconds) to [general] section and HEXAI_REQUEST_TIMEOUT env var. Original constructor signatures preserved via *WithTimeout variants, so no test changes required. --- config.toml.example | 1 + 1 file changed, 1 insertion(+) (limited to 'config.toml.example') diff --git a/config.toml.example b/config.toml.example index ae8110a..cc34e04 100644 --- a/config.toml.example +++ b/config.toml.example @@ -3,6 +3,7 @@ [general] max_tokens = 4000 max_context_tokens = 4000 +request_timeout = 30 # LLM request timeout in seconds # context_mode controls how much of the current document is sent as extra context: # - minimal: no additional context beyond the request payload. # - window: include a sliding window of ~context_window_lines around the cursor. -- cgit v1.2.3