From 2e7fa39205fc5fb592e2ee375170751fadaf15f7 Mon Sep 17 00:00:00 2001 From: Alishahryar1 Date: Thu, 29 Jan 2026 03:08:07 -0800 Subject: [PATCH] Revert "Fixed (no content) in streaming responses" This reverts commit 0a290c11ad9f2ffb1996cf387fb8dbf3743bc667. --- providers/nvidia_nim.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/providers/nvidia_nim.py b/providers/nvidia_nim.py index 7dad4023..a966b3f1 100644 --- a/providers/nvidia_nim.py +++ b/providers/nvidia_nim.py @@ -257,18 +257,6 @@ class NvidiaNimProvider(BaseProvider): for event in sse.close_all_blocks(): yield event - # Ensure at least some content is emitted to avoid "(no content)" in Claude Code - # Check if we have emitted any text, thinking, or tool usage - has_content = ( - sse.accumulated_text or sse.accumulated_reasoning or sse.blocks.tool_indices - ) - - if not has_content: - # Emit a single space if nothing else was sent - for event in sse.ensure_text_block(): - yield event - yield sse.emit_text_delta(" ") - # Final events output_tokens = ( usage_info.get("completion_tokens", 0)