From ba3d8a5b33cf9d9eae62d4eb013b594e483baf9b Mon Sep 17 00:00:00 2001 From: yucheng Date: Thu, 24 Sep 2026 18:23:53 +0000 Subject: [PATCH] refactor(guardrails): drop redundant helper docstrings in the responses handler Co-authored-by: feng.tsai Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- litellm/llms/openai/responses/guardrail_translation/handler.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/litellm/llms/openai/responses/guardrail_translation/handler.py b/litellm/llms/openai/responses/guardrail_translation/handler.py index a65f3e6bc6b..4a28eabaab1 100644 --- a/litellm/llms/openai/responses/guardrail_translation/handler.py +++ b/litellm/llms/openai/responses/guardrail_translation/handler.py @@ -451,7 +451,6 @@ def _next_stream_sequence_number(responses_so_far: Sequence[object] | None) -> i def _input_image_ref(content_item: Mapping[str, object]) -> str: - """Identify an ``input_image`` part by whichever reference field it carries.""" image_url: Final = content_item.get("image_url") if isinstance(image_url, str) and image_url: return image_url @@ -481,7 +480,6 @@ def _image_url_part_ref(content_item: Mapping[str, object], scan_attachments: bo def _extract_tool_output_attachments( item: Mapping[str, object], images_to_check: list[str], files_to_check: list[str] ) -> None: - """Attachments nested inside a ``function_call_output`` item's ``output`` parts.""" if item.get("type") != "function_call_output": return output: Final = item.get("output") @@ -497,7 +495,6 @@ def _extract_tool_output_attachments( def _input_file_ref(content_item: Mapping[str, object]) -> str: - """Identify an ``input_file`` part by whichever reference field it carries.""" return next( ( value