From 55081682c752b2c2385a780e8e743c042e01c565 Mon Sep 17 00:00:00 2001 From: bigcat88 Date: Wed, 13 May 2026 11:07:01 +0300 Subject: [PATCH] [Partner Nodes] add seed param Signed-off-by: bigcat88 --- comfy_api_nodes/nodes_anthropic.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/comfy_api_nodes/nodes_anthropic.py b/comfy_api_nodes/nodes_anthropic.py index 88e8070b5..536d40842 100644 --- a/comfy_api_nodes/nodes_anthropic.py +++ b/comfy_api_nodes/nodes_anthropic.py @@ -141,6 +141,15 @@ class ClaudeNode(IO.ComfyNode): options=[IO.DynamicCombo.Option(label, _claude_model_inputs()) for label in CLAUDE_MODELS], tooltip="The Claude model used to generate the response.", ), + IO.Int.Input( + "seed", + default=0, + min=0, + max=2147483647, + control_after_generate=True, + tooltip="Seed controls whether the node should re-run; " + "results are non-deterministic regardless of seed.", + ), IO.Autogrow.Input( "images", template=IO.Autogrow.TemplateNames( @@ -197,10 +206,11 @@ class ClaudeNode(IO.ComfyNode): cls, prompt: str, model: dict, + seed: int, images: dict | None = None, system_prompt: str = "", ) -> IO.NodeOutput: - validate_string(prompt, strip_whitespace=False, min_length=1) + validate_string(prompt, strip_whitespace=True, min_length=1) model_label = model["model"] max_tokens = model["max_tokens"] temperature = model["temperature"]