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
fix: test_standard_logging_payload_includes_guardrail_information
Sameer Kankute8b2472063849
diff --git a/tests/guardrails_tests/test_tracing_guardrails.py b/tests/guardrails_tests/test_tracing_guardrails.pyindex 02ff7c0e4f6..8e7ce27bc28 100644--- a/tests/guardrails_tests/test_tracing_guardrails.py+++ b/tests/guardrails_tests/test_tracing_guardrails.py@@ -74,7 +74,7 @@ async def test_standard_logging_payload_includes_guardrail_information():class MockClientSession:def __init__(self):- pass+ self.closed = Falseasync def __aenter__(self):return self@@ -82,6 +82,9 @@ async def test_standard_logging_payload_includes_guardrail_information():async def __aexit__(self, exc_type, exc_val, exc_tb):pass+ async def close(self):+ self.closed = True+def post(self, url, json=None):class MockResponse:def __init__(self, response_obj):