diff options
| author | Florian <2320560+florianbuetow@users.noreply.github.com> | 2026-02-01 01:27:24 +0100 |
|---|---|---|
| committer | Florian <2320560+florianbuetow@users.noreply.github.com> | 2026-02-01 01:27:24 +0100 |
| commit | 3d30755ca29fdebdd0cee0d5049b4dfba4cd43d3 (patch) | |
| tree | cc8b6976cb1d8e41b0c0cda23ad3e6f9b4fd886d /internal/hexailsp | |
| parent | 22009e90a4576764687328ed3cf81efbd2813d77 (diff) | |
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.
Diffstat (limited to 'internal/hexailsp')
| -rw-r--r-- | internal/hexailsp/run.go | 1 |
1 files changed, 1 insertions, 0 deletions
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, |
