From 144d32979e8cc3a7c474c648a2674408b7d7249a Mon Sep 17 00:00:00 2001 From: Yucheng Zhu Date: Wed, 12 Aug 2026 18:46:18 -0700 Subject: [PATCH] chore(guardrails): drop a comment that repeated its own docstring --- litellm/proxy/guardrails/anthropic_sse.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/litellm/proxy/guardrails/anthropic_sse.py b/litellm/proxy/guardrails/anthropic_sse.py index db7cc283c40..3471d10330f 100644 --- a/litellm/proxy/guardrails/anthropic_sse.py +++ b/litellm/proxy/guardrails/anthropic_sse.py @@ -105,8 +105,6 @@ def anthropic_sse_error_frames(message: str | Mapping[str, object]) -> tuple[byt travel as a frame. A structured detail is JSON-serialized into the string so it stays machine readable without violating the string-typed contract. """ - # AnthropicErrorDetail.message is a str, so a structured detail is serialized into the string - # rather than nested as an object text: Final = message if isinstance(message, str) else json.dumps(message, default=str) body: Final = json.dumps(text) return (