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 fixes
Ishaan Jafferf1d516f0ae69
diff --git a/tests/proxy_unit_tests/test_proxy_custom_logger.py b/tests/proxy_unit_tests/test_proxy_custom_logger.pyindex 28de522a4c7..b7e8f6cf499 100644--- a/tests/proxy_unit_tests/test_proxy_custom_logger.py+++ b/tests/proxy_unit_tests/test_proxy_custom_logger.py@@ -91,7 +91,9 @@ def test_embedding(client):assert "headers" in metadataproxy_server_request = litellm_params.get("proxy_server_request")model_info = litellm_params.get("model_info")- assert proxy_server_request == {+ # Remove arrival_time from comparison as it's dynamic+ proxy_server_request_copy = {k: v for k, v in proxy_server_request.items() if k != "arrival_time"}+ assert proxy_server_request_copy == {"url": "http://testserver/embeddings","method": "POST","headers": {@@ -188,7 +190,9 @@ def test_chat_completion(client):}assert "authorization" not in proxy_server_request_object["headers"]- assert proxy_server_request_object == {+ # Remove arrival_time from comparison as it's dynamic+ proxy_server_request_copy = {k: v for k, v in proxy_server_request_object.items() if k != "arrival_time"}+ assert proxy_server_request_copy == {"url": "http://testserver/chat/completions","method": "POST","headers": {