feat(dynamic_rate_limiter.py): working e2e

This commit is contained in:
Krrish Dholakia 2024-06-22 14:41:22 -07:00
parent 8f95381276
commit 8843b0dc77
7 changed files with 420 additions and 24 deletions

View file

@ -1768,6 +1768,9 @@ def mock_response() -> litellm.ModelResponse:
@pytest.mark.asyncio
async def test_router_model_usage(mock_response):
"""
Test if tracking used model tpm works as expected
"""
model = "my-fake-model"
model_tpm = 100
setattr(