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
move hibp url to constants
Oliver Jensena9a0bcb9f849
diff --git a/litellm/constants.py b/litellm/constants.pyindex 5751e6e46af..59a7c3d1e40 100644--- a/litellm/constants.py+++ b/litellm/constants.py@@ -2039,3 +2039,6 @@ BATCH_ENQUEUED_TOKEN_LIMIT_METADATA_KEY: Final = "batch_enqueued_token_limit"# Shared read-only empty mapping, for defaulting optional Mapping parameters without# constructing a fresh mutable dict at each call site.EMPTY_MAPPING: Final = MappingProxyType({})++# API endpoint for breached password k-anonymity search+HIBP_RANGE_API_BASE: Final = "https://api.pwnedpasswords.com/range"\ No newline at end of filediff --git a/litellm/proxy/auth/password_policy.py b/litellm/proxy/auth/password_policy.pyindex 84680fa9020..958547d6fc7 100644--- a/litellm/proxy/auth/password_policy.py+++ b/litellm/proxy/auth/password_policy.py@@ -18,11 +18,11 @@ from typing import Finalfrom litellm._logging import verbose_proxy_loggerfrom litellm._version import version+from litellm.constants import HIBP_RANGE_API_BASEfrom litellm.llms.custom_httpx.http_handler import AsyncHTTPHandler, get_async_httpx_clientfrom litellm.proxy._types import ProxyErrorTypes, ProxyExceptionfrom litellm.types.llms.custom_http import httpxSpecialProvider-HIBP_RANGE_API_BASE: Final = "https://api.pwnedpasswords.com/range"HIBP_TIMEOUT_SECONDS: Final = 5.0DEFAULT_MIN_LENGTH: Final = 12