mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 11:43:54 +00:00
feat(dynamic_rate_limiter.py): working e2e
This commit is contained in:
parent
8f95381276
commit
8843b0dc77
7 changed files with 420 additions and 24 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue