File tree Expand file tree Collapse file tree
StabilityMatrix.Avalonia/ViewModels/Inference
StabilityMatrix.Core/Inference Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010using StabilityMatrix . Core . Attributes ;
1111using StabilityMatrix . Core . Models ;
1212using StabilityMatrix . Core . Services ;
13- git status
1413
1514namespace StabilityMatrix . Avalonia . ViewModels . Inference ;
1615
Original file line number Diff line number Diff line change @@ -333,33 +333,6 @@ public async Task<ComfyTask> QueuePromptAsync(
333333{
334334 var request = new ComfyPromptRequest { ClientId = ClientId , Prompt = nodes } ;
335335
336- // DEBUG: dump final workflow JSON
337- try
338- {
339- var json = JsonSerializer . Serialize ( request , jsonSerializerOptions ) ;
340-
341- var debugDir = Path . Combine (
342- Environment . GetFolderPath ( Environment . SpecialFolder . ApplicationData ) ,
343- "StabilityMatrix" ,
344- "Debug"
345- ) ;
346-
347- Directory . CreateDirectory ( debugDir ) ;
348-
349- var path = Path . Combine (
350- debugDir ,
351- $ "wan_workflow_debug_request.json"
352- ) ;
353-
354- File . WriteAllText ( path , json ) ;
355-
356- Logger . Warn ( "WAN DEBUG: Dumped final request JSON to {0}" , path ) ;
357- }
358- catch ( Exception ex )
359- {
360- Logger . Error ( ex , "WAN DEBUG: Failed to dump final request JSON" ) ;
361- }
362-
363336 var result = await comfyApi . PostPrompt ( request , cancellationToken ) . ConfigureAwait ( false ) ;
364337
365338 var task = new ComfyTask ( result . PromptId ) ;
@@ -368,7 +341,6 @@ public async Task<ComfyTask> QueuePromptAsync(
368341
369342 return task ;
370343}
371-
372344 public async Task InterruptPromptAsync ( CancellationToken cancellationToken = default )
373345 {
374346 await comfyApi . PostInterrupt ( cancellationToken ) . ConfigureAwait ( false ) ;
You can’t perform that action at this time.
0 commit comments