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]

fix test update tpm / rpm limits for a key

Ishaan Jaff9b239111f458
diff --git a/litellm/tests/test_key_generate_prisma.py b/litellm/tests/test_key_generate_prisma.py
index 66d49f886df..6402964eea3 100644
--- a/litellm/tests/test_key_generate_prisma.py
+++ b/litellm/tests/test_key_generate_prisma.py
@@ -2752,7 +2752,8 @@ async def test_generate_key_with_model_tpm_limit(prisma_client):
# Update model tpm_limit and rpm_limit
request = UpdateKeyRequest(
key=generated_key,
- metadata={"model_tpm_limit": {"gpt-4": 200}, "model_rpm_limit": {"gpt-4": 3}},
+ model_tpm_limit={"gpt-4": 200},
+ model_rpm_limit={"gpt-4": 3},
)
_request = Request(scope={"type": "http"})
_request._url = URL(url="/update/key")