mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-09 03:18:44 +00:00
style(typing): format reasoning extraction
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
f44e7ad9fb
commit
cb2f5c6641
1 changed files with 1 additions and 3 deletions
|
|
@ -1298,9 +1298,7 @@ class LiteLLMCompletionResponsesConfig:
|
|||
text_parts: Final = tuple(
|
||||
text.strip()
|
||||
for block in summary
|
||||
if isinstance(block, Mapping)
|
||||
and isinstance(text := block.get("text"), str)
|
||||
and text.strip()
|
||||
if isinstance(block, Mapping) and isinstance(text := block.get("text"), str) and text.strip()
|
||||
)
|
||||
return "\n".join(text_parts) if text_parts else None
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue