refactor(responses): drop docstrings that restate the logprob helpers
Some checks failed
Cost map pins recheck / rerun-cost-map-guard (push) Has been cancelled
LiteLLM Rust / rust-lint (push) Has been cancelled
LiteLLM Rust / rust-test (push) Has been cancelled
LiteLLM Rust / rust-wheel (push) Has been cancelled

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
mateo 2026-11-02 20:08:11 +00:00
parent 1c7b6a3f08
commit 1bc94cb972

View file

@ -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