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: update dynamic callback params test for turn_off_message_logging removal
user413f89892b54
diff --git a/tests/test_litellm/litellm_core_utils/test_initialize_dynamic_callback_params.py b/tests/test_litellm/litellm_core_utils/test_initialize_dynamic_callback_params.pyindex 91969a2b8e2..55f3c2ba3aa 100644--- a/tests/test_litellm/litellm_core_utils/test_initialize_dynamic_callback_params.py+++ b/tests/test_litellm/litellm_core_utils/test_initialize_dynamic_callback_params.py@@ -82,13 +82,18 @@ def test_env_reference_in_litellm_params_metadata_raises():def test_non_string_values_are_not_flagged():kwargs = {"langsmith_sampling_rate": 0.5,- "turn_off_message_logging": True,}params = initialize_standard_callback_dynamic_params(kwargs)assert params.get("langsmith_sampling_rate") == 0.5- assert params.get("turn_off_message_logging") is True+++def test_turn_off_message_logging_not_extracted_from_request():+ """turn_off_message_logging is admin-only — must not be settable via request."""+ kwargs = {"turn_off_message_logging": True}+ params = initialize_standard_callback_dynamic_params(kwargs)+ assert params.get("turn_off_message_logging") is Nonedef test_empty_kwargs_returns_empty_params():