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]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
test(response_metadata): anchor detailed-timing test on a fixed instant instead of wall clock
Devin AIe62e0e067af8
diff --git a/tests/test_litellm/litellm_core_utils/llm_response_utils/test_response_metadata.py b/tests/test_litellm/litellm_core_utils/llm_response_utils/test_response_metadata.pyindex 3379879a8a6..50409b2ea2c 100644--- a/tests/test_litellm/litellm_core_utils/llm_response_utils/test_response_metadata.py+++ b/tests/test_litellm/litellm_core_utils/llm_response_utils/test_response_metadata.py@@ -474,7 +474,7 @@ class TestDetailedTiming:monkeypatch.setattr(response_metadata_mod, "LITELLM_DETAILED_TIMING", True)result = ModelResponse()- received_at = datetime.datetime.now(datetime.timezone.utc)+ received_at = datetime.datetime(2025, 1, 1, tzinfo=datetime.timezone.utc)start = received_at + datetime.timedelta(milliseconds=200)api_call_start = start.replace(tzinfo=None)end = start + datetime.timedelta(milliseconds=530)