From dd9c35b86facb358057cba0fa27a933afb657572 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Mon, 9 Nov 2026 03:05:25 +0000 Subject: [PATCH] fix(auth): fill prefetch with serialized cache payloads --- litellm/proxy/auth/auth_object_prefetch.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/litellm/proxy/auth/auth_object_prefetch.py b/litellm/proxy/auth/auth_object_prefetch.py index 865113320b0..c7f0bea3f17 100644 --- a/litellm/proxy/auth/auth_object_prefetch.py +++ b/litellm/proxy/auth/auth_object_prefetch.py @@ -297,8 +297,9 @@ async def _write_back( ) shared: Final = cache.shared if generation is not None: + assert shared is not None for cache_key, payload, ttl in payloads: - cache.set_if_generation(cache_key, payload, generation, ttl) + shared.set_if_generation(cache_key, payload, generation, ttl) return if shared is not None: with service_target(AUTH_OBJECTS_TARGET):