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: bump default allowed_fails + reduce default db pool limit
Krrish Dholakia936640948d79
diff --git a/litellm/__init__.py b/litellm/__init__.pyindex 6dc678b3e59..bf084e20118 100644--- a/litellm/__init__.py+++ b/litellm/__init__.py@@ -146,6 +146,9 @@ return_response_headers: bool = ()##################logging: bool = True+enable_caching_on_provider_specific_optional_params: bool = (+ False # feature-flag for caching on optional params - e.g. 'top_k'+)caching: bool = (False # Not used anymore, will be removed in next MAJOR release - https://github.com/BerriAI/litellm/discussions/648)diff --git a/litellm/proxy/proxy_cli.py b/litellm/proxy/proxy_cli.pyindex 1d0eef6a0e8..e1bc363d631 100644--- a/litellm/proxy/proxy_cli.py+++ b/litellm/proxy/proxy_cli.py@@ -19,11 +19,17 @@ litellm_mode = os.getenv("LITELLM_MODE", "DEV") # "PRODUCTION", "DEV"if litellm_mode == "DEV":load_dotenv()import shutil+from enum import Enumfrom importlib import resourcestelemetry = None+class LiteLLMDatabaseConnectionPool(Enum):+ database_connection_pool_limit = 10+ database_connection_pool_timeout = 60++def append_query_params(url, params) -> str:from litellm._logging import verbose_proxy_logger@@ -526,10 +532,12 @@ def run_server()database_url = general_settings.get("database_url", None)db_connection_pool_limit = general_settings.get(- "database_connection_pool_limit", 100+ "database_connection_pool_limit",+ LiteLLMDatabaseConnectionPool.database_connection_pool_limit.value,)db_connection_timeout = general_settings.get(- "database_connection_timeout", 60+ "database_connection_timeout",+ LiteLLMDatabaseConnectionPool.database_connection_pool_timeout.value,)if database_url and database_url.startswith("os.environ/"):original_dir = os.getcwd()