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: respect optional logging payload fields
Yuneng Jiangd1a1cda14439
diff --git a/tests/local_testing/test_custom_callback_input.py b/tests/local_testing/test_custom_callback_input.pyindex f0f24a6e6b2..834570091bd 100644--- a/tests/local_testing/test_custom_callback_input.py+++ b/tests/local_testing/test_custom_callback_input.py@@ -1076,7 +1076,7 @@ def test_standard_logging_payload(model, turn_off_message_logging):))- keys_list = list(StandardLoggingPayload.__annotations__.keys())+ keys_list = list(StandardLoggingPayload.__required_keys__)for k in keys_list:assert (@@ -1190,7 +1190,7 @@ def test_standard_logging_payload_audio(turn_off_message_logging, stream):))- keys_list = list(StandardLoggingPayload.__annotations__.keys())+ keys_list = list(StandardLoggingPayload.__required_keys__)for k in keys_list:assert (diff --git a/tests/logging_callback_tests/test_datadog.py b/tests/logging_callback_tests/test_datadog.pyindex 83a652e8884..7ac9ac0b5ad 100644--- a/tests/logging_callback_tests/test_datadog.py+++ b/tests/logging_callback_tests/test_datadog.py@@ -270,7 +270,7 @@ async def test_datadog_logging_http_request():message = json.loads(body[0]["message"])print("logged message", json.dumps(message, indent=4))- expected_message_fields = StandardLoggingPayload.__annotations__.keys()+ expected_message_fields = StandardLoggingPayload.__required_keys__for field in expected_message_fields:assert field in message, f"Field '{field}' is missing from the message"