From 396fc787901a9ebc1c3e1e558d05e66b6a01435e Mon Sep 17 00:00:00 2001 From: Alessandro Pignati Date: Tue, 3 Nov 2026 13:03:38 +0100 Subject: [PATCH] style(guardrails): drop the explanatory comment on the choice index field AGENTS.md keeps explanatory comments out of the code, and the field's own docstring already says what it is for. --- litellm/integrations/custom_guardrail.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/litellm/integrations/custom_guardrail.py b/litellm/integrations/custom_guardrail.py index 7b1eaca13af..502c3cc95e0 100644 --- a/litellm/integrations/custom_guardrail.py +++ b/litellm/integrations/custom_guardrail.py @@ -1414,8 +1414,6 @@ class CustomGuardrail(CustomLogger): end_time=end_time, duration=duration, masked_entity_count=masked_entity_count, - # Set by callers that inspect one choice at a time, so the per-choice entries of an - # n > 1 response can be told apart. choice_index=request_data.get("guardrail_choice_index"), **(tracing_detail or {}), )