Use Claude Code, Codex, VSCode, Pi, and OpenCode (and 6 other harnesses) for free (1.3B+ free tokens) from your terminal, app, IDE, or phone, and now from the browser with native browser sessions (multi-harness + multi-model) like OpenClaw (voice supported + ToS friendly)
Python
Revert "Treated new line as empty response also"
Alishahryar142a0d3e4d86e
diff --git a/providers/nvidia_nim.py b/providers/nvidia_nim.pyindex 617fd0c6..7dad4023 100644--- a/providers/nvidia_nim.py+++ b/providers/nvidia_nim.py@@ -257,13 +257,13 @@ class NvidiaNimProvider(BaseProvider):for event in sse.close_all_blocks():yield event- # Ensure at least some visible content is emitted to avoid "(no content)" in Claude Code- # Pure thinking blocks might still trigger "(no content)", so we check for text/tools.- has_visible_content = (- sse.accumulated_text and sse.accumulated_text.strip()- ) or sse.blocks.tool_indices+ # 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_visible_content:+ if not has_content:# Emit a single space if nothing else was sentfor event in sse.ensure_text_block():yield event