Skip to content

Commit 202116f

Browse files
author
balogh.adam@icloud.com
committed
Merge branch 'main' of github.com:OpenGradient/sdk
2 parents 059dc06 + 92bc0da commit 202116f

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

src/opengradient/cli.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -646,13 +646,15 @@ def print_llm_chat_result(model_cid, tx_hash, finish_reason, chat_output, is_van
646646
fn = tool_call.get("function", {})
647647
click.echo(f" Function: {fn.get('name', '')}")
648648
click.echo(f" Arguments: {fn.get('arguments', '')}")
649-
elif key == "content" and isinstance(value, list):
650-
# Normalize list-of-blocks content (e.g. Gemini 3 thought signatures)
651-
if key == "content" and isinstance(value, list):
649+
elif key == "content":
650+
if isinstance(value, list):
651+
# Normalize list-of-blocks content (e.g. Gemini 3 thought signatures)
652652
text = " ".join(block.get("text", "") for block in value if isinstance(block, dict) and block.get("type") == "text").strip()
653-
click.echo(f"{key}: {text}")
653+
click.echo(text)
654654
else:
655-
click.echo(f"{key}: {value}")
655+
click.echo(value)
656+
else:
657+
click.echo(f"{key}: {value}")
656658
click.echo()
657659

658660

0 commit comments

Comments
 (0)