AnythingLLM monkey-patches the OpenAI and Anthropic SDK layers so that all provider calls go through a single, user-configurable timeout (default 10 minutes) with retries disabled, letting the underlying socket error surface faster instead of hanging indefinitely.
Unified SDK-level timeout and retry policy so LLM provider calls fail fast with a clear socket error instead of hanging for the default SDK retry/timeout window.
Users of AnythingLLM-hosted LLM apps will see failed provider requests surface within minutes instead of hanging or silently retrying for long periods, making it easier to diagnose connectivity or provider-outage problems. Operators can now tune the timeout via environment variables for self-hosted deployments. The main risk is that disabling retries entirely (maxRetries=0) means any transient network glitch now immediately fails the request, so operators should monitor for a spike in timeout errors after upgrading and consider whether their network environment needs retries.