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/llmutils | |
| 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/llmutils')
| -rw-r--r-- | internal/llmutils/client.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/llmutils/client.go b/internal/llmutils/client.go index 53fca9c..de65935 100644 --- a/internal/llmutils/client.go +++ b/internal/llmutils/client.go @@ -12,6 +12,7 @@ import ( func NewClientFromApp(cfg appconfig.App) (llm.Client, error) { llmCfg := llm.Config{ Provider: cfg.Provider, + RequestTimeout: cfg.RequestTimeout, OpenAIBaseURL: cfg.OpenAIBaseURL, OpenAIModel: cfg.OpenAIModel, OpenAITemperature: cfg.OpenAITemperature, |
