diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.ImageToImageAccept.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.ImageToImageAccept.g.cs
index 31a0897..5e11ca2 100644
--- a/src/libs/StabilityAI/Generated/StabilityAI.Models.ImageToImageAccept.g.cs
+++ b/src/libs/StabilityAI/Generated/StabilityAI.Models.ImageToImageAccept.g.cs
@@ -11,11 +11,11 @@ public enum ImageToImageAccept
///
///
///
- ApplicationJson,
+ ApplicationDividejson,
///
///
///
- ImagePng,
+ ImageDividepng,
}
///
@@ -30,8 +30,8 @@ public static string ToValueString(this ImageToImageAccept value)
{
return value switch
{
- ImageToImageAccept.ApplicationJson => "application/json",
- ImageToImageAccept.ImagePng => "image/png",
+ ImageToImageAccept.ApplicationDividejson => "application/json",
+ ImageToImageAccept.ImageDividepng => "image/png",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
@@ -42,8 +42,8 @@ public static string ToValueString(this ImageToImageAccept value)
{
return value switch
{
- "application/json" => ImageToImageAccept.ApplicationJson,
- "image/png" => ImageToImageAccept.ImagePng,
+ "application/json" => ImageToImageAccept.ApplicationDividejson,
+ "image/png" => ImageToImageAccept.ImageDividepng,
_ => null,
};
}
diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.MaskingAccept.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.MaskingAccept.g.cs
index 02197b4..677afdf 100644
--- a/src/libs/StabilityAI/Generated/StabilityAI.Models.MaskingAccept.g.cs
+++ b/src/libs/StabilityAI/Generated/StabilityAI.Models.MaskingAccept.g.cs
@@ -11,11 +11,11 @@ public enum MaskingAccept
///
///
///
- ApplicationJson,
+ ApplicationDividejson,
///
///
///
- ImagePng,
+ ImageDividepng,
}
///
@@ -30,8 +30,8 @@ public static string ToValueString(this MaskingAccept value)
{
return value switch
{
- MaskingAccept.ApplicationJson => "application/json",
- MaskingAccept.ImagePng => "image/png",
+ MaskingAccept.ApplicationDividejson => "application/json",
+ MaskingAccept.ImageDividepng => "image/png",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
@@ -42,8 +42,8 @@ public static string ToValueString(this MaskingAccept value)
{
return value switch
{
- "application/json" => MaskingAccept.ApplicationJson,
- "image/png" => MaskingAccept.ImagePng,
+ "application/json" => MaskingAccept.ApplicationDividejson,
+ "image/png" => MaskingAccept.ImageDividepng,
_ => null,
};
}
diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.MaskingRequestBody.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.MaskingRequestBody.g.cs
index fbe7d42..2b64a6d 100644
--- a/src/libs/StabilityAI/Generated/StabilityAI.Models.MaskingRequestBody.g.cs
+++ b/src/libs/StabilityAI/Generated/StabilityAI.Models.MaskingRequestBody.g.cs
@@ -142,14 +142,6 @@ public partial class MaskingRequestBody
/// Image used to initialize the diffusion process, in lieu of random noise.
/// Example: <image binary>
///
- ///
- /// Optional grayscale mask that allows for influence over which pixels are eligible for diffusion and at what strength. Must be the same dimensions as the `init_image`. Use the `mask_source` option to specify whether the white or black pixels should be inpainted.
- /// Example: <image binary>
- ///
- ///
- /// Optional grayscale mask that allows for influence over which pixels are eligible for diffusion and at what strength. Must be the same dimensions as the `init_image`. Use the `mask_source` option to specify whether the white or black pixels should be inpainted.
- /// Example: <image binary>
- ///
///
/// An array of text prompts to use for generation.
/// Due to how arrays are represented in `multipart/form-data` requests, prompts must adhear to the format `text_prompts[index][text|weight]`,
@@ -168,6 +160,14 @@ public partial class MaskingRequestBody
/// text_prompts[1][weight]: -0.9
/// ```
///
+ ///
+ /// Optional grayscale mask that allows for influence over which pixels are eligible for diffusion and at what strength. Must be the same dimensions as the `init_image`. Use the `mask_source` option to specify whether the white or black pixels should be inpainted.
+ /// Example: <image binary>
+ ///
+ ///
+ /// Optional grayscale mask that allows for influence over which pixels are eligible for diffusion and at what strength. Must be the same dimensions as the `init_image`. Use the `mask_source` option to specify whether the white or black pixels should be inpainted.
+ /// Example: <image binary>
+ ///
///
/// How strictly the diffusion process adheres to the prompt text (higher values keep your image closer to your prompt)
/// Default Value: 7
@@ -214,9 +214,9 @@ public MaskingRequestBody(
{
this.InitImage = initImage ?? throw new global::System.ArgumentNullException(nameof(initImage));
this.InitImagename = initImagename ?? throw new global::System.ArgumentNullException(nameof(initImagename));
- this.TextPrompts = textPrompts ?? throw new global::System.ArgumentNullException(nameof(textPrompts));
this.MaskImage = maskImage;
this.MaskImagename = maskImagename;
+ this.TextPrompts = textPrompts ?? throw new global::System.ArgumentNullException(nameof(textPrompts));
this.CfgScale = cfgScale;
this.ClipGuidancePreset = clipGuidancePreset;
this.Sampler = sampler;
diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.TextToImageAccept.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.TextToImageAccept.g.cs
index 87a895b..7fce11f 100644
--- a/src/libs/StabilityAI/Generated/StabilityAI.Models.TextToImageAccept.g.cs
+++ b/src/libs/StabilityAI/Generated/StabilityAI.Models.TextToImageAccept.g.cs
@@ -11,11 +11,11 @@ public enum TextToImageAccept
///
///
///
- ApplicationJson,
+ ApplicationDividejson,
///
///
///
- ImagePng,
+ ImageDividepng,
}
///
@@ -30,8 +30,8 @@ public static string ToValueString(this TextToImageAccept value)
{
return value switch
{
- TextToImageAccept.ApplicationJson => "application/json",
- TextToImageAccept.ImagePng => "image/png",
+ TextToImageAccept.ApplicationDividejson => "application/json",
+ TextToImageAccept.ImageDividepng => "image/png",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
@@ -42,8 +42,8 @@ public static string ToValueString(this TextToImageAccept value)
{
return value switch
{
- "application/json" => TextToImageAccept.ApplicationJson,
- "image/png" => TextToImageAccept.ImagePng,
+ "application/json" => TextToImageAccept.ApplicationDividejson,
+ "image/png" => TextToImageAccept.ImageDividepng,
_ => null,
};
}
diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.TextToImageRequestBodyVariant1.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.TextToImageRequestBodyVariant1.g.cs
index c5b5be1..418433d 100644
--- a/src/libs/StabilityAI/Generated/StabilityAI.Models.TextToImageRequestBodyVariant1.g.cs
+++ b/src/libs/StabilityAI/Generated/StabilityAI.Models.TextToImageRequestBodyVariant1.g.cs
@@ -55,6 +55,18 @@ public sealed partial class TextToImageRequestBodyVariant1
///
/// Initializes a new instance of the class.
///
+ ///
+ /// An array of text prompts to use for generation.
+ /// Given a text prompt with the text `A lighthouse on a cliff` and a weight of `0.5`, it would be represented as:
+ /// <pre>
+ /// "text_prompts": [
+ /// {
+ /// "text": "A lighthouse on a cliff",
+ /// "weight": 0.5
+ /// }
+ /// ]
+ /// </pre>
+ ///
///
/// Height of the image in pixels. Must be in increments of 64 and pass the following validation:
/// - For 768 engines: <span style='display: flex; justify-content: flex-start; gap:8px'>589,824 <span>≤</span> `height * width` <span>≤</span> 1,048,576</span>
@@ -69,18 +81,6 @@ public sealed partial class TextToImageRequestBodyVariant1
/// Default Value: 512
/// Example: 512
///
- ///
- /// An array of text prompts to use for generation.
- /// Given a text prompt with the text `A lighthouse on a cliff` and a weight of `0.5`, it would be represented as:
- /// <pre>
- /// "text_prompts": [
- /// {
- /// "text": "A lighthouse on a cliff",
- /// "weight": 0.5
- /// }
- /// ]
- /// </pre>
- ///
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
@@ -89,9 +89,9 @@ public TextToImageRequestBodyVariant1(
int? height,
int? width)
{
- this.TextPrompts = textPrompts ?? throw new global::System.ArgumentNullException(nameof(textPrompts));
this.Height = height;
this.Width = width;
+ this.TextPrompts = textPrompts ?? throw new global::System.ArgumentNullException(nameof(textPrompts));
}
///
diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.UpscaleImageAccept.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.UpscaleImageAccept.g.cs
index 059ce99..235b790 100644
--- a/src/libs/StabilityAI/Generated/StabilityAI.Models.UpscaleImageAccept.g.cs
+++ b/src/libs/StabilityAI/Generated/StabilityAI.Models.UpscaleImageAccept.g.cs
@@ -11,11 +11,11 @@ public enum UpscaleImageAccept
///
///
///
- ApplicationJson,
+ ApplicationDividejson,
///
///
///
- ImagePng,
+ ImageDividepng,
}
///
@@ -30,8 +30,8 @@ public static string ToValueString(this UpscaleImageAccept value)
{
return value switch
{
- UpscaleImageAccept.ApplicationJson => "application/json",
- UpscaleImageAccept.ImagePng => "image/png",
+ UpscaleImageAccept.ApplicationDividejson => "application/json",
+ UpscaleImageAccept.ImageDividepng => "image/png",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
@@ -42,8 +42,8 @@ public static string ToValueString(this UpscaleImageAccept value)
{
return value switch
{
- "application/json" => UpscaleImageAccept.ApplicationJson,
- "image/png" => UpscaleImageAccept.ImagePng,
+ "application/json" => UpscaleImageAccept.ApplicationDividejson,
+ "image/png" => UpscaleImageAccept.ImageDividepng,
_ => null,
};
}