From 9b2861f11f0fe5d2af3224666db40091c821e0d3 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Tue, 5 Nov 2024 13:15:37 -0800 Subject: [PATCH] fix allow_failed_db_requests check --- litellm/proxy/auth/auth_checks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/proxy/auth/auth_checks.py b/litellm/proxy/auth/auth_checks.py index 9e535a3eb2a..50e22654a42 100644 --- a/litellm/proxy/auth/auth_checks.py +++ b/litellm/proxy/auth/auth_checks.py @@ -743,7 +743,7 @@ async def _handle_failed_db_connection_for_get_key_object( from litellm.proxy.proxy_server import general_settings, proxy_logging_obj # If this flag is on, requests failing to connect to the DB will be allowed - if general_settings.get("allow_failed_db_requests", True): + if general_settings.get("allow_failed_db_requests", False) is True: # log to prometheus await proxy_logging_obj.service_logging_obj.async_service_failure_hook( error=e,