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]

test_team_budget_metrics

Ishaan Jaffer14543324aff7
diff --git a/tests/otel_tests/test_prometheus.py b/tests/otel_tests/test_prometheus.py
index 69c1f9413e3..883562e8820 100644
--- a/tests/otel_tests/test_prometheus.py
+++ b/tests/otel_tests/test_prometheus.py
@@ -405,7 +405,7 @@ async def test_team_budget_metrics():
# Verify spends match within a small delta (floating point comparison)
assert (
- abs(team_info_remaining_budget - first_budget["remaining"]) <= 0.00000
+ abs(team_info_remaining_budget - first_budget["remaining"]) <= 0.001
), f"Spend mismatch: Prometheus={team_info_remaining_budget}, Team Info={first_budget['remaining']}"
@@ -539,7 +539,7 @@ async def test_key_budget_metrics():
# Verify spends match within a small delta (floating point comparison)
assert (
- abs(key_info_remaining_budget - first_budget["remaining"]) <= 0.00000
+ abs(key_info_remaining_budget - first_budget["remaining"]) <= 0.001
), f"Spend mismatch: Prometheus={key_info_remaining_budget}, Key Info={first_budget['remaining']}"