Skip to content

Commit 2a4f59c

Browse files
Merge pull request #62 from tryAGI/bot/update-openapi_202503130139
feat:@coderabbitai
2 parents e89f345 + 7e593b2 commit 2a4f59c

File tree

6 files changed

+42
-6
lines changed

6 files changed

+42
-6
lines changed

src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostGenerateImage.g.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,15 +273,20 @@ partial void ProcessPostGenerateImageResponseContent(
273273
/// Images links are available for a limited period of time; if you would like to keep the image, you must download it.
274274
/// </summary>
275275
/// <param name="imageRequest"></param>
276+
/// <param name="styleRefEmbeddings">
277+
/// A list of base64 encoded binary embeddings
278+
/// </param>
276279
/// <param name="cancellationToken">The token to cancel the operation with</param>
277280
/// <exception cref="global::System.InvalidOperationException"></exception>
278281
public async global::System.Threading.Tasks.Task<global::Ideogram.GenerateImageResponse> PostGenerateImageAsync(
279282
global::Ideogram.ImageRequest imageRequest,
283+
global::System.Collections.Generic.IList<string>? styleRefEmbeddings = default,
280284
global::System.Threading.CancellationToken cancellationToken = default)
281285
{
282286
var __request = new global::Ideogram.GenerateImageRequest
283287
{
284288
ImageRequest = imageRequest,
289+
StyleRefEmbeddings = styleRefEmbeddings,
285290
};
286291

287292
return await PostGenerateImageAsync(

src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostGenerateImage.g.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,14 @@ public partial interface IGenerateClient
2222
/// Images links are available for a limited period of time; if you would like to keep the image, you must download it.
2323
/// </summary>
2424
/// <param name="imageRequest"></param>
25+
/// <param name="styleRefEmbeddings">
26+
/// A list of base64 encoded binary embeddings
27+
/// </param>
2528
/// <param name="cancellationToken">The token to cancel the operation with</param>
2629
/// <exception cref="global::System.InvalidOperationException"></exception>
2730
global::System.Threading.Tasks.Task<global::Ideogram.GenerateImageResponse> PostGenerateImageAsync(
2831
global::Ideogram.ImageRequest imageRequest,
32+
global::System.Collections.Generic.IList<string>? styleRefEmbeddings = default,
2933
global::System.Threading.CancellationToken cancellationToken = default);
3034
}
3135
}

src/libs/Ideogram/Generated/Ideogram.Models.GenerateImageRequest.g.cs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ public sealed partial class GenerateImageRequest
1515
[global::System.Text.Json.Serialization.JsonRequired]
1616
public required global::Ideogram.ImageRequest ImageRequest { get; set; }
1717

18+
/// <summary>
19+
/// A list of base64 encoded binary embeddings
20+
/// </summary>
21+
[global::System.Text.Json.Serialization.JsonPropertyName("style_ref_embeddings")]
22+
public global::System.Collections.Generic.IList<string>? StyleRefEmbeddings { get; set; }
23+
1824
/// <summary>
1925
/// Additional properties that are not explicitly defined in the schema
2026
/// </summary>
@@ -25,13 +31,18 @@ public sealed partial class GenerateImageRequest
2531
/// Initializes a new instance of the <see cref="GenerateImageRequest" /> class.
2632
/// </summary>
2733
/// <param name="imageRequest"></param>
34+
/// <param name="styleRefEmbeddings">
35+
/// A list of base64 encoded binary embeddings
36+
/// </param>
2837
#if NET7_0_OR_GREATER
2938
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
3039
#endif
3140
public GenerateImageRequest(
32-
global::Ideogram.ImageRequest imageRequest)
41+
global::Ideogram.ImageRequest imageRequest,
42+
global::System.Collections.Generic.IList<string>? styleRefEmbeddings)
3343
{
3444
this.ImageRequest = imageRequest ?? throw new global::System.ArgumentNullException(nameof(imageRequest));
45+
this.StyleRefEmbeddings = styleRefEmbeddings;
3546
}
3647

3748
/// <summary>

src/libs/Ideogram/Generated/Ideogram.Models.ModelEnum.g.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ public enum ModelEnum
3434
///
3535
/// </summary>
3636
V2ATURBO,
37+
/// <summary>
38+
///
39+
/// </summary>
40+
V3,
3741
}
3842

3943
/// <summary>
@@ -54,6 +58,7 @@ public static string ToValueString(this ModelEnum value)
5458
ModelEnum.V2TURBO => "V_2_TURBO",
5559
ModelEnum.V2A => "V_2A",
5660
ModelEnum.V2ATURBO => "V_2A_TURBO",
61+
ModelEnum.V3 => "V_3",
5762
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
5863
};
5964
}
@@ -70,6 +75,7 @@ public static string ToValueString(this ModelEnum value)
7075
"V_2_TURBO" => ModelEnum.V2TURBO,
7176
"V_2A" => ModelEnum.V2A,
7277
"V_2A_TURBO" => ModelEnum.V2ATURBO,
78+
"V_3" => ModelEnum.V3,
7379
_ => null,
7480
};
7581
}

src/libs/Ideogram/Generated/JsonSerializerContextTypes.g.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,23 +118,23 @@ public sealed partial class JsonSerializerContextTypes
118118
/// <summary>
119119
///
120120
/// </summary>
121-
public global::Ideogram.InternalTestingRequest? Type23 { get; set; }
121+
public global::System.Collections.Generic.IList<string>? Type23 { get; set; }
122122
/// <summary>
123123
///
124124
/// </summary>
125-
public global::Ideogram.InternalTestingNestedObject? Type24 { get; set; }
125+
public global::Ideogram.InternalTestingRequest? Type24 { get; set; }
126126
/// <summary>
127127
///
128128
/// </summary>
129-
public global::Ideogram.InternalTestingNestedObjectRequiredFields? Type25 { get; set; }
129+
public global::Ideogram.InternalTestingNestedObject? Type25 { get; set; }
130130
/// <summary>
131131
///
132132
/// </summary>
133-
public global::System.DateTime? Type26 { get; set; }
133+
public global::Ideogram.InternalTestingNestedObjectRequiredFields? Type26 { get; set; }
134134
/// <summary>
135135
///
136136
/// </summary>
137-
public global::System.Collections.Generic.IList<string>? Type27 { get; set; }
137+
public global::System.DateTime? Type27 { get; set; }
138138
/// <summary>
139139
///
140140
/// </summary>

src/libs/Ideogram/openapi.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,16 @@ components:
555555
properties:
556556
image_request:
557557
$ref: '#/components/schemas/ImageRequest'
558+
style_ref_embeddings:
559+
title: style_ref_embeddings
560+
type: array
561+
items:
562+
type: string
563+
description: A list of base64 encoded binary embeddings
558564
example:
565+
style_ref_embeddings:
566+
- style_ref_embeddings
567+
- style_ref_embeddings
559568
image_request:
560569
aspect_ratio: ASPECT_10_16
561570
magic_prompt_option: AUTO
@@ -877,6 +886,7 @@ components:
877886
- V_2_TURBO
878887
- V_2A
879888
- V_2A_TURBO
889+
- V_3
880890
type: string
881891
description: 'The model used to generate an image or edit one. /generate and /remix supports all model types, however, /edit is only supported for V_2 and V_2_TURBO.'
882892
default: V_2

0 commit comments

Comments
 (0)