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
Merge remote-tracking branch 'origin/litellm_internal_staging' into litellm_infer_single_worker_redis_banner
mateo-berri31090d122e66
diff --cc litellm/proxy/proxy_server.pyindex 6ee08a732f2,cae735be988..a5deba03f9e--- a/litellm/proxy/proxy_server.py+++ b/litellm/proxy/proxy_server.py@@@ -868,11 -874,9 +878,11 @@@ async def _flush_spend_logs_queue_on_shverbose_proxy_logger.exception("Error flushing spend logs queue on shutdown: %s", e)- async def proxy_shutdown_event(worker_heartbeat: ProxyWorkerHeartbeat | None = None):-async def proxy_shutdown_event() -> None:++async def proxy_shutdown_event(worker_heartbeat: ProxyWorkerHeartbeat | None = None) -> None:global prisma_client, master_key, user_custom_auth, user_custom_key_generate, user_custom_key_updateverbose_proxy_logger.info("Shutting down LiteLLM Proxy Server")+ if worker_heartbeat is not None and prisma_client:+ await worker_heartbeat.deregister()if prisma_client:# Drain the SGR fold first: it lives in memory, so an un-drained interval# is lost, and a write attempted after disconnect raises