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
use constants for redis buffer in DB
Ishaan Jaff4fb9d27a3545
diff --git a/litellm/constants.py b/litellm/constants.pyindex ea8bc76ac4f..e224b3d33e7 100644--- a/litellm/constants.py+++ b/litellm/constants.py@@ -18,6 +18,8 @@ DEFAULT_IMAGE_WIDTH = 300DEFAULT_IMAGE_HEIGHT = 300MAX_SIZE_PER_ITEM_IN_MEMORY_CACHE_IN_KB = 1024 # 1MB = 1024KBSINGLE_DEPLOYMENT_TRAFFIC_FAILURE_THRESHOLD = 1000 # Minimum number of requests to consider "reasonable traffic". Used for single-deployment cooldown logic.+REDIS_UPDATE_BUFFER_KEY = "litellm_spend_update_buffer"+MAX_REDIS_BUFFER_DEQUEUE_COUNT = 100#### RELIABILITY ####REPEATED_STREAMING_CHUNK_LIMIT = 100 # catch if model starts looping the same chunk while streaming. Uses high default to prevent false positives.#### Networking settings ####