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

12
StabilityMatrix/Models/Api/TextToImageRequest.cs

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

Loading…
Cancel
Save