Skip to content

Commit

Permalink
Merge pull request #16 from tryAGI/bot/update-openapi_202409250627
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Sep 25, 2024
2 parents cbebdb0 + c7980ec commit 873f6d3
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ public sealed partial class ColorPaletteMember
/// Example: 0.25
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("color_weight")]
[global::System.Text.Json.Serialization.JsonRequired]
public required double ColorWeight { get; set; }
public double? ColorWeight { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand Down
8 changes: 8 additions & 0 deletions src/libs/Ideogram/Generated/Ideogram.Models.ImageObject.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@ public sealed partial class ImageObject
[global::System.Text.Json.Serialization.JsonRequired]
public required int Seed { get; set; }

/// <summary>
/// The style type to generate with; this is only applicable for models V_2 and above and should not be specified for model versions V_1.<br/>
/// Example: REALISTIC
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("style_type")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::Ideogram.JsonConverters.StyleTypeJsonConverter))]
public global::Ideogram.StyleType? StyleType { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
/// </summary>
Expand Down
10 changes: 7 additions & 3 deletions src/libs/Ideogram/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -531,12 +531,14 @@ components:
description: A list of ImageObjects that contain the generated image(s).
example:
data:
- seed: 12345
- style_type: REALISTIC
seed: 12345
prompt: 'A serene tropical beach scene. Dominating the foreground are tall palm trees with lush green leaves, standing tall against a backdrop of a sandy beach. The beach leads to the azure waters of the sea, which gently kisses the shoreline. In the distance, there''s an island or landmass with a silhouette of what appears to be a lighthouse or tower. The sky above is painted with fluffy white clouds, some of which are tinged with hues of pink and orange, suggesting either a sunrise or sunset.'
resolution: 1024x1024
url: https://ideogram.ai/api/images/direct/8YEpFzHuS-S6xXEGmCsf7g
is_image_safe: true
- seed: 12345
- style_type: REALISTIC
seed: 12345
prompt: 'A serene tropical beach scene. Dominating the foreground are tall palm trees with lush green leaves, standing tall against a backdrop of a sandy beach. The beach leads to the azure waters of the sea, which gently kisses the shoreline. In the distance, there''s an island or landmass with a silhouette of what appears to be a lighthouse or tower. The sky above is painted with fluffy white clouds, some of which are tinged with hues of pink and orange, suggesting either a sunrise or sunset.'
resolution: 1024x1024
url: https://ideogram.ai/api/images/direct/8YEpFzHuS-S6xXEGmCsf7g
Expand Down Expand Up @@ -578,7 +580,10 @@ components:
minimum: 0
type: integer
example: 12345
style_type:
$ref: '#/components/schemas/StyleType'
example:
style_type: REALISTIC
seed: 12345
prompt: 'A serene tropical beach scene. Dominating the foreground are tall palm trees with lush green leaves, standing tall against a backdrop of a sandy beach. The beach leads to the azure waters of the sea, which gently kisses the shoreline. In the distance, there''s an island or landmass with a silhouette of what appears to be a lighthouse or tower. The sky above is painted with fluffy white clouds, some of which are tinged with hues of pink and orange, suggesting either a sunrise or sunset.'
resolution: 1024x1024
Expand Down Expand Up @@ -1097,7 +1102,6 @@ components:
title: ColorPaletteMember
required:
- color_hex
- color_weight
type: object
properties:
color_hex:
Expand Down

0 comments on commit 873f6d3

Please sign in to comment.