diff options
Diffstat (limited to 'internal/llm/openrouter.go')
| -rw-r--r-- | internal/llm/openrouter.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/internal/llm/openrouter.go b/internal/llm/openrouter.go index d728275..970ec29 100644 --- a/internal/llm/openrouter.go +++ b/internal/llm/openrouter.go @@ -9,6 +9,7 @@ import ( "strings" "time" + "codeberg.org/snonux/hexai/internal/llm/policy" "codeberg.org/snonux/hexai/internal/logging" ) @@ -56,7 +57,8 @@ func newOpenRouterWithTimeout(baseURL, model, apiKey string, defaultTemp *float6 model = "openrouter/auto" } if timeoutSec <= 0 { - timeoutSec = 30 + // Fall back to the shared default chat timeout from the policy package. + timeoutSec = policy.DefaultRequestTimeoutSeconds } return openRouterClient{ httpClient: &http.Client{Timeout: time.Duration(timeoutSec) * time.Second}, |
