diff --git a/litellm/litellm_core_utils/streaming_handler.py b/litellm/litellm_core_utils/streaming_handler.py index 6e991e6911b..51d7b9f10d3 100644 --- a/litellm/litellm_core_utils/streaming_handler.py +++ b/litellm/litellm_core_utils/streaming_handler.py @@ -794,6 +794,11 @@ class CustomStreamWrapper: "reasoning_content" in model_response.choices[0].delta and model_response.choices[0].delta.reasoning_content is not None ) + or ( + "reasoning" in completion_obj + and completion_obj["reasoning"] is not None + and len(str(completion_obj["reasoning"])) > 0 + ) or (model_response.choices[0].delta.provider_specific_fields is not None) or ( "provider_specific_fields" in model_response