Browse Source

fix stuff

pull/5/head
Ionite 2 years ago
parent
commit
9fa9e05678
No known key found for this signature in database
  1. 5
      StabilityMatrix/Models/Api/ImageResponse.cs
  2. 12
      StabilityMatrix/Models/Api/TextToImageRequest.cs

5
StabilityMatrix/Models/Api/ImageResponse.cs

@ -1,5 +1,6 @@
using System.Collections.Generic;
using System.Text.Json.Serialization;
using StabilityMatrix.ViewModels;
namespace StabilityMatrix.Models.Api;
@ -8,8 +9,8 @@ public class ImageResponse
[JsonPropertyName("images")]
public string[] Images { get; set; }
[JsonPropertyName("parameters")]
public Dictionary<string, string>? Parameters { get; set; }
// [JsonPropertyName("parameters")]
// public TextToImageViewModel? Parameters { get; set; }
[JsonPropertyName("info")]
public string? Info { get; set; }

12
StabilityMatrix/Models/Api/TextToImageRequest.cs

@ -114,11 +114,11 @@ public class TextToImageRequest
[JsonPropertyName("override_settings_restore_afterwards")]
public bool? OverrideSettingsRestoreAfterwards { get; set; }
// [JsonPropertyName("script_args")]
// public Dictionary<string?, string?> ScriptArgs { get; set; }
[JsonPropertyName("script_args")]
public string[]? ScriptArgs { get; set; }
// [JsonPropertyName("sampler_index")]
// public string? SamplerIndex { get; set; }
[JsonPropertyName("sampler_index")]
public string? SamplerIndex { get; set; }
[JsonPropertyName("script_name")]
public string? ScriptName { get; set; }
@ -129,6 +129,6 @@ public class TextToImageRequest
[JsonPropertyName("save_images")]
public bool? SaveImages { get; set; }
// [JsonPropertyName("alwayson_scripts")]
// public Dictionary<string?, string?> AlwaysOnScripts { get; set; }
[JsonPropertyName("alwayson_scripts")]
public Dictionary<string, string>? AlwaysOnScripts { get; set; }
}

Loading…
Cancel
Save