mirror of
https://github.com/BerriAI/litellm.git
synced 2026-08-28 05:25:59 +00:00
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:
commit
e02f34b2c5
1 changed files with 1 additions and 1 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue