mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-11 08:38:24 +00:00
refactor(responses): drop docstrings that restate the logprob helpers
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
1c7b6a3f08
commit
1bc94cb972
1 changed files with 0 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue