summaryrefslogtreecommitdiff
path: root/internal/askcli/command_projects.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-06-11 08:19:24 +0300
committerPaul Buetow <paul@buetow.org>2026-06-11 08:19:24 +0300
commit8135a6b851b420597c22cfa5e58e6d69e894a00d (patch)
tree7f70ac1325e4908139fc60af665dfb573275530b /internal/askcli/command_projects.go
parentb4f06c656d8d8733a9bf2e2e2a5eb2a7a48389bb (diff)
Consolidate LLM timeout/retry/breaker values into policy package
The per-request HTTP timeouts (30s chat, 120s research), retry policy (attempts, backoff, jitter), and circuit-breaker tuning (threshold, cooldown) were previously scattered as bare literals across each provider constructor and resilience.go/circuitbreaker.go, making the operational policy hard to discover and prone to drift. Introduce internal/llm/policy with documented named constants as the single source of truth, and reference them from all provider constructors, the default retry policy, and the shared circuit breaker. Update comments to explain the policy and reasoning. Add tests validating the values and their internal consistency. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'internal/askcli/command_projects.go')
0 files changed, 0 insertions, 0 deletions