diff --git a/litellm/litellm_core_utils/streaming_handler.py b/litellm/litellm_core_utils/streaming_handler.py index ca5f6a2f6db..058539f6c50 100644 --- a/litellm/litellm_core_utils/streaming_handler.py +++ b/litellm/litellm_core_utils/streaming_handler.py @@ -839,10 +839,7 @@ class CustomStreamWrapper: not self.sent_first_chunk and hasattr(model_response.choices[0].delta, "role") and model_response.choices[0].delta.role is not None - and not ( - model_response.choices[0].logprobs is not None - and not model_response.choices[0].logprobs.content - ) + and self.custom_llm_provider == "azure" ) ): return True