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]

Format code

kayoch1n76555cad8163
diff --git a/tests/test_litellm/proxy/common_utils/test_callback_utils.py b/tests/test_litellm/proxy/common_utils/test_callback_utils.py
index ffcab13571b..b9ed4b9b508 100644
--- a/tests/test_litellm/proxy/common_utils/test_callback_utils.py
+++ b/tests/test_litellm/proxy/common_utils/test_callback_utils.py
@@ -5,7 +5,10 @@ sys.path.insert(
0, os.path.abspath("../../..")
) # Adds the parent directory to the system path
-from litellm.proxy.common_utils.callback_utils import get_remaining_tokens_and_requests_from_request_data
+from litellm.proxy.common_utils.callback_utils import (
+ get_remaining_tokens_and_requests_from_request_data,
+)
+
def test_get_remaining_tokens_and_requests_from_request_data():
model_group = "openrouter/google/gemini-2.0-flash-001"
@@ -13,7 +16,7 @@ def test_get_remaining_tokens_and_requests_from_request_data():
"metadata": {
"model_group": model_group,
f"litellm-key-remaining-requests-{model_group}": 100,
- f"litellm-key-remaining-tokens-{model_group}": 200
+ f"litellm-key-remaining-tokens-{model_group}": 200,
}
}
@@ -22,6 +25,5 @@ def test_get_remaining_tokens_and_requests_from_request_data():
expected_name = "openrouter-google-gemini-2.0-flash-001"
assert headers == {
f"x-litellm-key-remaining-requests-{expected_name}": 100,
- f"x-litellm-key-remaining-tokens-{expected_name}": 200
+ f"x-litellm-key-remaining-tokens-{expected_name}": 200,
}
-