Skip to content

Commit f9176f3

Browse files
committed
skip empty template values
1 parent 61e55c9 commit f9176f3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

AiServer.ServiceInterface/Comfy/ComfyClient.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ public async Task<ComfyWorkflowResponse> PromptGenerationAsync(ComfyWorkflowRequ
191191
var requestArgs = comfyRequest.ToObjectDictionary();
192192
foreach (var entry in requestArgs)
193193
{
194+
if (entry.Value is null or "") continue;
194195
workflowArgs[entry.Key.ToCamelCase()] = entry.Value;
195196
}
196197

0 commit comments

Comments
 (0)