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: fix batch_writing_interval
Ishaan Jaffer99ebd8f95af5
diff --git a/litellm/proxy/proxy_server.py b/litellm/proxy/proxy_server.pyindex dd88fce8308..14cf848f70e 100644--- a/litellm/proxy/proxy_server.py+++ b/litellm/proxy/proxy_server.py@@ -4155,7 +4155,7 @@ class ProxyStartupEvent:min(30, proxy_budget_rescheduler_max_time - proxy_budget_rescheduler_min_time))# Ensure minimum interval of 30 seconds for batch writing to prevent memory issues- batch_writing_interval = max(30, proxy_batch_write_at) + random.randint(0, 5)+ batch_writing_interval = proxy_batch_write_at + random.randint(0, 5)### RESET BUDGET ###if general_settings.get("disable_reset_budget", False) is False: