mirror of
https://github.com/Alishahryar1/free-claude-code.git
synced 2026-07-03 14:05:26 +02:00
Last try to debug no content errors
This commit is contained in:
@@ -259,15 +259,14 @@ class NvidiaNimProvider(BaseProvider):
|
||||
|
||||
# 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
|
||||
has_visible_content = sse.accumulated_text and sse.accumulated_text.strip()
|
||||
|
||||
if not has_visible_content:
|
||||
# Emit a single space if nothing else was sent
|
||||
for event in sse.ensure_text_block():
|
||||
yield event
|
||||
yield sse.emit_text_delta(" ")
|
||||
yield sse.stop_text_block()
|
||||
|
||||
# Final events
|
||||
output_tokens = (
|
||||
|
||||
Reference in New Issue
Block a user