Skip to content

Commit 7799471

Browse files
committed
fix: Remove duplicate thinking_blocks field from Anthropic responses
- thinking_blocks now only exists in provider_specific_fields - Keep reasoning_content as the standard OpenAI-compatible field - Fixes duplication issue when using Anthropic with OpenAI Agents SDK - Agents SDK now correctly sees only reasoning_content, not duplicate thinking_blocks
1 parent bf5246b commit 7799471

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

litellm/llms/anthropic/chat/transformation.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -962,7 +962,6 @@ def transform_parsed_response(
962962
"citations": citations,
963963
"thinking_blocks": thinking_blocks,
964964
},
965-
thinking_blocks=thinking_blocks,
966965
reasoning_content=reasoning_content,
967966
)
968967

0 commit comments

Comments
 (0)