TECHNOLOGY

LiteLLM’s global-fallback recursion fix needs an ordered attempt test

In this article
THE QUICK TAKE

Use instrumented providers to verify one primary attempt and the intended fallback sequence before adopting LiteLLM’s prerelease recursion fix.

LiteLLM v1.111.0-dev.4, published on November 15 at 04:17:20 UTC as a prerelease, fixes completion calls that hang or recurse when global model_fallbacks is set. The shipped correction is a reason to test actual attempt order, rather than accepting any eventually successful response as proof that fallback works.

Give every attempt an observable identity

Configure harmless test endpoints that record a request identity and return a distinctive marker. Make the primary fail deterministically, then let one fallback succeed. Assert the complete endpoint sequence and the marker delivered to the caller. This identifies recursion, duplicate attempts and accidental direct success separately. Keep the workload free of real tool effects so repeated requests are safe to inspect.

Per-call policy must remain explicit

The implementation distinguishes global defaults, a per-call fallback list and an empty list used to opt a call out. Test those configurations independently with the same failing primary. A service may intentionally forbid fallback for a sensitive task even when its ordinary traffic uses alternatives. The acceptance result should show the selected policy, not infer it from whether a response happened to arrive.

Cross-provider attempts need credential boundaries

Use synthetic credentials and inspect each test endpoint’s received headers and base URL. A fallback to another provider should resolve the configuration intended for that provider. This application-level check catches copied upstream settings that a final text comparison cannot expose. It is especially useful where one wrapper supplies custom headers or pricing metadata, since those settings can survive several layers before an attempt is dispatched.

Keep SDK and proxy ownership separate

The PR also separates SDK fallback behavior from Router-owned proxy routing and direct health checks. Run acceptance through the same interface the application uses. A passing direct SDK fixture does not establish proxy behavior, and a healthy provider check should not be credited to a different model’s fallback. Pin the prerelease artifact in the report; these notes do not establish a stable-release recommendation or a measured reliability increase.

Sources

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles