Skip to content

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

fixed (no content) appearing in responses

Alishahryar123bd8601afc7
diff --git a/providers/nvidia_nim.py b/providers/nvidia_nim.py
index 71171fa0..a966b3f1 100644
--- a/providers/nvidia_nim.py
+++ b/providers/nvidia_nim.py
@@ -462,9 +462,9 @@ class NvidiaNimProvider(BaseProvider):
)
if not content:
- content.append({"type": "text", "text": ""})
- # Mistral models in NIM (like Devstral) require content to be non-empty
- # even in sequences of messages.
+ # NIM models (especially Mistral-based) often require non-empty content.
+ # Adding a single space satisfies this requirement while avoiding
+ # the "(no content)" display issue in Claude Code.
content.append({"type": "text", "text": " "})
usage = response_json.get("usage", {})