From 6d48ceba4f18796c4b29e29c4e6cd34ddffb5cf2 Mon Sep 17 00:00:00 2001 From: mrinal Date: Wed, 23 Sep 2026 23:59:03 +0000 Subject: [PATCH] refactor(proxy): drop the raise_on_invalid_logging_metadata docstring Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- litellm/proxy/common_utils/callback_config_validation.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/litellm/proxy/common_utils/callback_config_validation.py b/litellm/proxy/common_utils/callback_config_validation.py index 6c60b4bff7c..8f8e189d03b 100644 --- a/litellm/proxy/common_utils/callback_config_validation.py +++ b/litellm/proxy/common_utils/callback_config_validation.py @@ -257,11 +257,6 @@ def logging_metadata_config_error(metadata: Mapping[str, object] | None) -> str def raise_on_invalid_logging_metadata(metadata: Mapping[str, object] | None) -> None: - """Reject a metadata payload whose ``logging`` entries the runtime cannot honor. - - Without this the same config the management surface rejects would be - accepted here and then silently ignored or misrouted at request time. - """ error: Final = logging_metadata_config_error(metadata) if error is not None: raise HTTPException(status_code=400, detail={"error": error}) # mutable-ok: FastAPI detail contract