Skip to content

Commit

Permalink
Fix JsonValue deserialize error with Inference
Browse files Browse the repository at this point in the history
  • Loading branch information
ionite34 committed Dec 14, 2024
1 parent bd95cda commit 8553cd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions StabilityMatrix.Core/Models/Api/Comfy/ComfyInputInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ namespace StabilityMatrix.Core.Models.Api.Comfy;
public class ComfyInputInfo
{
[JsonPropertyName("required")]
public Dictionary<string, JsonValue>? Required { get; set; }
public Dictionary<string, JsonNode>? Required { get; set; }

[JsonPropertyName("optional")]
public Dictionary<string, JsonValue>? Optional { get; set; }
public Dictionary<string, JsonNode>? Optional { get; set; }

public List<string>? GetRequiredValueAsNestedList(string key)
{
Expand Down

0 comments on commit 8553cd1

Please sign in to comment.