The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
fix(proxy_server.py): move db credential check to only run behind feature flag
Krrish Dholakiac13f6514bf11
diff --git a/litellm/proxy/proxy_server.py b/litellm/proxy/proxy_server.pyindex f10b4ef86be..ae1c8d18af5 100644--- a/litellm/proxy/proxy_server.py+++ b/litellm/proxy/proxy_server.py@@ -3282,14 +3282,14 @@ class ProxyStartupEvent:prisma_client=prisma_client, proxy_logging_obj=proxy_logging_obj)- ### GET STORED CREDENTIALS ###- scheduler.add_job(- proxy_config.get_credentials,- "interval",- seconds=10,- args=[prisma_client],- )- await proxy_config.get_credentials(prisma_client=prisma_client)+ ### GET STORED CREDENTIALS ###+ scheduler.add_job(+ proxy_config.get_credentials,+ "interval",+ seconds=10,+ args=[prisma_client],+ )+ await proxy_config.get_credentials(prisma_client=prisma_client)if (proxy_logging_obj is not Noneand proxy_logging_obj.slack_alerting_instance.alerting is not None