diff --git a/litellm/llms/minimax/chat/transformation.py b/litellm/llms/minimax/chat/transformation.py index 4508bab345f..1dd4da52f7b 100644 --- a/litellm/llms/minimax/chat/transformation.py +++ b/litellm/llms/minimax/chat/transformation.py @@ -173,7 +173,11 @@ class MinimaxChatResponseIterator(OpenAIChatCompletionStreamingHandler): ) self.finished_reasoning_content = True self.plain_chunk_count = 0 - elif not self.finished_reasoning_content and self.plain_chunk_count < self.MAX_PLAIN_CHUNKS and content.strip(): + elif ( + not self.finished_reasoning_content + and self.plain_chunk_count < self.MAX_PLAIN_CHUNKS + and content.strip() + ): if not self.started_reasoning_content: self.started_reasoning_content = True self.plain_chunk_count += 1