Skip to content

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]

chore: merge main into litellm_lit5285_login_rate_limit_v2

yuchengdb976161495d
diff --cc tests/test_litellm/proxy/test_proxy_server.py
index 07696f23da7,19b0e88bea7..80b1d3b1841
--- a/tests/test_litellm/proxy/test_proxy_server.py
+++ b/tests/test_litellm/proxy/test_proxy_server.py
@@@ -30,11 -31,17 +30,18 @@@ from litellm.caching.caching import Red
from litellm.caching.redis_cluster_cache import RedisClusterCache
from litellm.litellm_core_utils.get_model_cost_map import ModelCostMapReloaded
from litellm.caching.dual_cache import DualCache
- from litellm.proxy._types import LitellmUserRoles, TokenCountRequest, UserAPIKeyAuth
+ from litellm.proxy._types import (
+ LitellmUserRoles,
+ ModelAccessDeniedProxyException,
+ ProxyErrorTypes,
+ ProxyException,
+ TokenCountRequest,
+ UserAPIKeyAuth,
+ )
+from litellm.proxy.auth.login_throttle import LoginThrottle
from litellm.proxy.auth.user_api_key_auth import user_api_key_auth
from litellm.proxy.hooks.parallel_request_limiter_v3 import RequestRateLimiterStash
- from litellm.proxy.proxy_server import app, initialize
+ from litellm.proxy.proxy_server import app, initialize, openai_exception_handler
from litellm.utils import _invalidate_model_cost_lowercase_map
example_embedding_result = {