fixed (no content) appearing in responses

This commit is contained in:
Alishahryar1
2026-01-29 01:55:55 -08:00
parent 30b45ce087
commit 23bd8601af
+3 -3
View File
@@ -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", {})