From 3d30755ca29fdebdd0cee0d5049b4dfba4cd43d3 Mon Sep 17 00:00:00 2001 From: Florian <2320560+florianbuetow@users.noreply.github.com> Date: Sun, 1 Feb 2026 01:27:24 +0100 Subject: fix: pass RequestTimeout to all llm.Config instances Add RequestTimeout field to llm.Config construction in: - internal/hexailsp/run.go (buildClientIfNil) - internal/llmutils/client.go (NewClientFromApp) - internal/lsp/server.go (newClientForProvider) This ensures the configured timeout is used in all code paths, not just the ones already updated. --- internal/hexailsp/run.go | 1 + 1 file changed, 1 insertion(+) (limited to 'internal/hexailsp') diff --git a/internal/hexailsp/run.go b/internal/hexailsp/run.go index 1afa70a..47ed648 100644 --- a/internal/hexailsp/run.go +++ b/internal/hexailsp/run.go @@ -109,6 +109,7 @@ func buildClientIfNil(cfg appconfig.App, client llm.Client) llm.Client { } llmCfg := llm.Config{ Provider: cfg.Provider, + RequestTimeout: cfg.RequestTimeout, OpenAIBaseURL: cfg.OpenAIBaseURL, OpenAIModel: cfg.OpenAIModel, OpenAITemperature: cfg.OpenAITemperature, -- cgit v1.2.3