From c504ed59c23e183f6e06febc526c1f3aeb123763 Mon Sep 17 00:00:00 2001 From: Humaira Ambreen <181621420+humairaambreen@users.noreply.github.com> Date: Sun, 27 Sep 2026 12:51:14 +0530 Subject: [PATCH] fix(responses): add summary via model copy Keep reasoning summary on the wire without widening the generic response schema. --- .../litellm_completion_transformation/transformation.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/litellm/responses/litellm_completion_transformation/transformation.py b/litellm/responses/litellm_completion_transformation/transformation.py index 03089eb7ba7..593d9803c1b 100644 --- a/litellm/responses/litellm_completion_transformation/transformation.py +++ b/litellm/responses/litellm_completion_transformation/transformation.py @@ -2605,9 +2605,8 @@ class LiteLLMCompletionResponsesConfig: for text in (reasoning_content,) if text ], - summary=[], encrypted_content=encrypted_content, - ) + ).model_copy(update={"summary": []}) ] return []