mirror of
https://github.com/koala73/worldmonitor.git
synced 2026-05-14 19:16:20 +02:00
Moves isProviderAvailable() check from before cachedFetchJson() to inside the fetcher callback. This ensures cache hits still serve valid data during provider outages instead of returning empty results. Changes: - classify-event: health gate moved inside cachedFetchJson callback - deduct-situation: same - get-country-intel-brief: same - summarize-article: same - _batch-classify: break → return results on health gate failure - callLlm (llm.ts): health gate added to provider chain - local-api-server: /api/llm-health endpoint + startup warmup Scope cleanup per review: - Reverted LlmStatusIndicator (extracted to #1528) - Reverted ACLED credential cleanup (extracted to #1530) - Reverted isSidecar → isLocalDeployment rename (extracted to #1532) Co-authored-by: Elie Habib <elie.habib@gmail.com>