From eef8f8ebb204458311b85ffc64cc4f5abe98fd5a Mon Sep 17 00:00:00 2001 From: Yujong Lee Date: Fri, 4 Sep 2026 18:43:10 -0700 Subject: [PATCH] fix(guardrails): retain cost breakdown in redacted audit logs --- litellm/types/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/litellm/types/utils.py b/litellm/types/utils.py index 238986f86a6..af8754cf8cd 100644 --- a/litellm/types/utils.py +++ b/litellm/types/utils.py @@ -3120,6 +3120,7 @@ AUDIT_GUARDRAIL_FIELDS: Final[frozenset[str]] = frozenset( "guardrail_action", "guardrail_usage", "guardrail_cost", + "guardrail_cost_by_unit", "guardrail_cost_in_spend", } )