Merge remote-tracking branch 'origin/litellm_fix_24985_thinking_roundtrip' into litellm_fix_24985_thinking_roundtrip

# Conflicts:
#	litellm/llms/anthropic/experimental_pass_through/responses_adapters/transformation.py
This commit is contained in:
mateo-berri 2026-08-22 16:32:43 -07:00
commit e02f34b2c5

View file

@ -111,7 +111,7 @@ class LiteLLMAnthropicToResponsesAPIAdapter:
if isinstance(part, Mapping):
mapping: Final = cast(Mapping[str, Any], part) # cast-ok: summary parts are untyped provider json
return str(mapping.get("text") or "")
return str(getattr(part, "text", "") or "")
return str(getattr(part, "text", None) or "")
@classmethod
def _thinking_blocks_from_reasoning_item(