From 1bc94cb97269aeaa7611441a83bc67e3f694744d Mon Sep 17 00:00:00 2001 From: mateo Date: Mon, 2 Nov 2026 20:08:11 +0000 Subject: [PATCH] refactor(responses): drop docstrings that restate the logprob helpers Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- .../responses/litellm_completion_transformation/logprobs.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/litellm/responses/litellm_completion_transformation/logprobs.py b/litellm/responses/litellm_completion_transformation/logprobs.py index 255667ae5a4..f0082bf48a9 100644 --- a/litellm/responses/litellm_completion_transformation/logprobs.py +++ b/litellm/responses/litellm_completion_transformation/logprobs.py @@ -1,5 +1,3 @@ -"""Chat ``choice.logprobs`` as Responses ``output_text.logprobs``, which share one token shape.""" - from collections.abc import Mapping from typing import Final @@ -34,7 +32,6 @@ def _choice_logprobs(choice_logprobs: object) -> ChoiceLogprobs | None: def output_text_logprobs(choice_logprobs: object) -> tuple[OutputTextLogprob, ...] | None: - """The ``logprobs`` a Responses text part carries for a chat choice, ``None`` when the choice sent none.""" validated: Final = _choice_logprobs(choice_logprobs) if validated is None or validated.content is None: return None