Skip to content

Commit

Permalink
Merge pull request #31 from tryAGI/bot/update-openapi_202410241826
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Oct 24, 2024
2 parents 1325beb + ce1c2cb commit 30b0eca
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ partial void ProcessPostEditImageResponseContent(
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.Model.ToValueString()}"),
name: "model");
if (request.MagicPromptOption != global::Ideogram.MagicPromptOption.AUTO)
if (request.MagicPromptOption != default)
{
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.MagicPromptOption?.ToValueString()}"),
Expand Down Expand Up @@ -205,7 +205,7 @@ partial void ProcessPostEditImageResponseContent(
string maskname,
string prompt,
global::Ideogram.ModelEnum model,
global::Ideogram.MagicPromptOption? magicPromptOption = global::Ideogram.MagicPromptOption.AUTO,
global::Ideogram.MagicPromptOption? magicPromptOption = default,
int? seed = default,
global::Ideogram.StyleType? styleType = default,
global::System.Threading.CancellationToken cancellationToken = default)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public partial interface IGenerateClient
string maskname,
string prompt,
global::Ideogram.ModelEnum model,
global::Ideogram.MagicPromptOption? magicPromptOption = global::Ideogram.MagicPromptOption.AUTO,
global::Ideogram.MagicPromptOption? magicPromptOption = default,
int? seed = default,
global::Ideogram.StyleType? styleType = default,
global::System.Threading.CancellationToken cancellationToken = default);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public sealed partial class EditImageRequest
[global::System.Text.Json.Serialization.JsonPropertyName("model")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::Ideogram.JsonConverters.ModelEnumJsonConverter))]
[global::System.Text.Json.Serialization.JsonRequired]
public required global::Ideogram.ModelEnum Model { get; set; }
public required global::Ideogram.ModelEnum Model { get; set; } = global::Ideogram.ModelEnum.V2;

/// <summary>
/// Determine if MagicPrompt should be used in generating the request or not<br/>
Expand All @@ -61,7 +61,7 @@ public sealed partial class EditImageRequest
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("magic_prompt_option")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::Ideogram.JsonConverters.MagicPromptOptionJsonConverter))]
public global::Ideogram.MagicPromptOption? MagicPromptOption { get; set; } = global::Ideogram.MagicPromptOption.AUTO;
public global::Ideogram.MagicPromptOption? MagicPromptOption { get; set; }

/// <summary>
/// Example: 12345
Expand Down
4 changes: 2 additions & 2 deletions src/libs/Ideogram/Generated/Ideogram.Models.ImageRequest.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public sealed partial class ImageRequest
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("model")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::Ideogram.JsonConverters.ModelEnumJsonConverter))]
public global::Ideogram.ModelEnum? Model { get; set; } = global::Ideogram.ModelEnum.V2;
public global::Ideogram.ModelEnum? Model { get; set; }

/// <summary>
/// Determine if MagicPrompt should be used in generating the request or not<br/>
Expand All @@ -40,7 +40,7 @@ public sealed partial class ImageRequest
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("magic_prompt_option")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::Ideogram.JsonConverters.MagicPromptOptionJsonConverter))]
public global::Ideogram.MagicPromptOption? MagicPromptOption { get; set; } = global::Ideogram.MagicPromptOption.AUTO;
public global::Ideogram.MagicPromptOption? MagicPromptOption { get; set; }

/// <summary>
/// Example: 12345
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public sealed partial class InitialImageRequest
/// Example: 50
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("image_weight")]
public int? ImageWeight { get; set; } = 50;
public int? ImageWeight { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ public sealed partial class UpscaleInitialImageRequest
/// Example: 50
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("resemblance")]
public int? Resemblance { get; set; } = 50;
public int? Resemblance { get; set; }

/// <summary>
/// Default Value: 50<br/>
/// Example: 50
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("detail")]
public int? Detail { get; set; } = 50;
public int? Detail { get; set; }

/// <summary>
/// Determine if MagicPrompt should be used in generating the request or not<br/>
Expand All @@ -36,7 +36,7 @@ public sealed partial class UpscaleInitialImageRequest
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("magic_prompt_option")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::Ideogram.JsonConverters.MagicPromptOptionJsonConverter))]
public global::Ideogram.MagicPromptOption? MagicPromptOption { get; set; } = global::Ideogram.MagicPromptOption.AUTO;
public global::Ideogram.MagicPromptOption? MagicPromptOption { get; set; }

/// <summary>
/// Example: 12345
Expand Down

0 comments on commit 30b0eca

Please sign in to comment.