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
test_pre_call_hook_team_rpm_limits
Ishaan Jaff7ac187b269ad
diff --git a/tests/local_testing/test_parallel_request_limiter.py b/tests/test_litellm/proxy/hooks/test_parallel_request_limiter.pysimilarity index 99%rename from tests/local_testing/test_parallel_request_limiter.pyrename to tests/test_litellm/proxy/hooks/test_parallel_request_limiter.pyindex 8b34e034544..72aca19a70a 100644--- a/tests/local_testing/test_parallel_request_limiter.py+++ b/tests/test_litellm/proxy/hooks/test_parallel_request_limiter.py@@ -212,6 +212,7 @@ async def test_pre_call_hook_rpm_limits_retry_after():@pytest.mark.asyncio[email protected](retries=3, delay=2)async def test_pre_call_hook_team_rpm_limits():"""Test if error raised on hitting team rpm limits@@ -1224,8 +1225,8 @@ async def test_post_call_success_hook_rpm_limits_per_model():Test if openai-compatible x-ratelimit-* headers are added to the response"""import logging- from litellm import ModelResponse+ from litellm import ModelResponsefrom litellm._logging import (verbose_logger,verbose_proxy_logger,