Skip to content

Commit deb2bb9

Browse files
HavenDVgithub-actions[bot]
andauthored
feat: Updated OpenAPI spec (#191)
Co-authored-by: github-actions[bot] <[email protected]>
1 parent b842dc2 commit deb2bb9

File tree

97 files changed

+7526
-1286
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+7526
-1286
lines changed

src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI..JsonSerializerContext.g.cs

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,8 @@ namespace tryAGI.OpenAI
467467
typeof(global::tryAGI.OpenAI.JsonConverters.MCPToolTypeNullableJsonConverter),
468468
typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenToolBackgroundJsonConverter),
469469
typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenToolBackgroundNullableJsonConverter),
470+
typeof(global::tryAGI.OpenAI.JsonConverters.ImageInputFidelityJsonConverter),
471+
typeof(global::tryAGI.OpenAI.JsonConverters.ImageInputFidelityNullableJsonConverter),
470472
typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenToolModelJsonConverter),
471473
typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenToolModelNullableJsonConverter),
472474
typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenToolModerationJsonConverter),
@@ -785,6 +787,46 @@ namespace tryAGI.OpenAI
785787
typeof(global::tryAGI.OpenAI.JsonConverters.FunctionToolCallOutputStatusNullableJsonConverter),
786788
typeof(global::tryAGI.OpenAI.JsonConverters.FunctionToolCallOutputTypeJsonConverter),
787789
typeof(global::tryAGI.OpenAI.JsonConverters.FunctionToolCallOutputTypeNullableJsonConverter),
790+
typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditCompletedEventBackgroundJsonConverter),
791+
typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditCompletedEventBackgroundNullableJsonConverter),
792+
typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditCompletedEventOutputFormatJsonConverter),
793+
typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditCompletedEventOutputFormatNullableJsonConverter),
794+
typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditCompletedEventQualityJsonConverter),
795+
typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditCompletedEventQualityNullableJsonConverter),
796+
typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditCompletedEventSizeJsonConverter),
797+
typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditCompletedEventSizeNullableJsonConverter),
798+
typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditCompletedEventTypeJsonConverter),
799+
typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditCompletedEventTypeNullableJsonConverter),
800+
typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditPartialImageEventBackgroundJsonConverter),
801+
typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditPartialImageEventBackgroundNullableJsonConverter),
802+
typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditPartialImageEventOutputFormatJsonConverter),
803+
typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditPartialImageEventOutputFormatNullableJsonConverter),
804+
typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditPartialImageEventQualityJsonConverter),
805+
typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditPartialImageEventQualityNullableJsonConverter),
806+
typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditPartialImageEventSizeJsonConverter),
807+
typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditPartialImageEventSizeNullableJsonConverter),
808+
typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditPartialImageEventTypeJsonConverter),
809+
typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditPartialImageEventTypeNullableJsonConverter),
810+
typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenCompletedEventBackgroundJsonConverter),
811+
typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenCompletedEventBackgroundNullableJsonConverter),
812+
typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenCompletedEventOutputFormatJsonConverter),
813+
typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenCompletedEventOutputFormatNullableJsonConverter),
814+
typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenCompletedEventQualityJsonConverter),
815+
typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenCompletedEventQualityNullableJsonConverter),
816+
typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenCompletedEventSizeJsonConverter),
817+
typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenCompletedEventSizeNullableJsonConverter),
818+
typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenCompletedEventTypeJsonConverter),
819+
typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenCompletedEventTypeNullableJsonConverter),
820+
typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenPartialImageEventBackgroundJsonConverter),
821+
typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenPartialImageEventBackgroundNullableJsonConverter),
822+
typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenPartialImageEventOutputFormatJsonConverter),
823+
typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenPartialImageEventOutputFormatNullableJsonConverter),
824+
typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenPartialImageEventQualityJsonConverter),
825+
typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenPartialImageEventQualityNullableJsonConverter),
826+
typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenPartialImageEventSizeJsonConverter),
827+
typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenPartialImageEventSizeNullableJsonConverter),
828+
typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenPartialImageEventTypeJsonConverter),
829+
typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenPartialImageEventTypeNullableJsonConverter),
788830
typeof(global::tryAGI.OpenAI.JsonConverters.ImagesResponseBackgroundJsonConverter),
789831
typeof(global::tryAGI.OpenAI.JsonConverters.ImagesResponseBackgroundNullableJsonConverter),
790832
typeof(global::tryAGI.OpenAI.JsonConverters.ImagesResponseOutputFormatJsonConverter),
@@ -1550,6 +1592,8 @@ namespace tryAGI.OpenAI
15501592
typeof(global::tryAGI.OpenAI.JsonConverters.FineTuneChatCompletionRequestAssistantMessageJsonConverter),
15511593
typeof(global::tryAGI.OpenAI.JsonConverters.FunctionToolCallOutputResourceJsonConverter),
15521594
typeof(global::tryAGI.OpenAI.JsonConverters.FunctionToolCallResourceJsonConverter),
1595+
typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditStreamEventJsonConverter),
1596+
typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenStreamEventJsonConverter),
15531597
typeof(global::tryAGI.OpenAI.JsonConverters.InputMessageResourceJsonConverter),
15541598
typeof(global::tryAGI.OpenAI.JsonConverters.ItemResourceJsonConverter),
15551599
typeof(global::tryAGI.OpenAI.JsonConverters.ModelIdsJsonConverter),

src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IImagesClient.CreateImage.g.cs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,13 @@ public partial interface IImagesClient
5252
/// Default Value: png<br/>
5353
/// Example: png
5454
/// </param>
55+
/// <param name="partialImages">
56+
/// The number of partial images to generate. This parameter is used for<br/>
57+
/// streaming responses that return partial images. Value must be between 0 and 3.<br/>
58+
/// When set to 0, the response will be a single image sent in one streaming event.<br/>
59+
/// Default Value: 0<br/>
60+
/// Example: 1
61+
/// </param>
5562
/// <param name="prompt">
5663
/// A text description of the desired image(s). The maximum length is 32000 characters for `gpt-image-1`, 1000 characters for `dall-e-2` and 4000 characters for `dall-e-3`.<br/>
5764
/// Example: A cute baby sea otter
@@ -75,6 +82,13 @@ public partial interface IImagesClient
7582
/// Default Value: auto<br/>
7683
/// Example: 1024x1024
7784
/// </param>
85+
/// <param name="stream">
86+
/// Generate the image in streaming mode. Defaults to `false`. See the <br/>
87+
/// [Image generation guide](/docs/guides/image-generation) for more information.<br/>
88+
/// This parameter is only supported for `gpt-image-1`.<br/>
89+
/// Default Value: false<br/>
90+
/// Example: false
91+
/// </param>
7892
/// <param name="style">
7993
/// The style of the generated images. This parameter is only supported for `dall-e-3`. Must be one of `vivid` or `natural`. Vivid causes the model to lean towards generating hyper-real and dramatic images. Natural causes the model to produce more natural, less hyper-real looking images.<br/>
8094
/// Default Value: vivid<br/>
@@ -94,9 +108,11 @@ public partial interface IImagesClient
94108
int? n = default,
95109
int? outputCompression = default,
96110
global::tryAGI.OpenAI.CreateImageRequestOutputFormat? outputFormat = default,
111+
int? partialImages = default,
97112
global::tryAGI.OpenAI.CreateImageRequestQuality? quality = default,
98113
global::tryAGI.OpenAI.CreateImageRequestResponseFormat? responseFormat = default,
99114
global::tryAGI.OpenAI.CreateImageRequestSize? size = default,
115+
bool? stream = default,
100116
global::tryAGI.OpenAI.CreateImageRequestStyle? style = default,
101117
string? user = default,
102118
global::System.Threading.CancellationToken cancellationToken = default);

src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IImagesClient.CreateImageEdit.g.cs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ public partial interface IImagesClient
3434
/// For `dall-e-2`, you can only provide one image, and it should be a square <br/>
3535
/// `png` file less than 4MB.
3636
/// </param>
37+
/// <param name="inputFidelity">
38+
/// Control how much effort the model will exert to match the style and features,<br/>
39+
/// especially facial features, of input images. This parameter is only supported<br/>
40+
/// for `gpt-image-1`. Supports `high` and `low`. Defaults to `low`.<br/>
41+
/// Default Value: low
42+
/// </param>
3743
/// <param name="mask">
3844
/// An additional image whose fully transparent areas (e.g. where alpha is zero) indicate where `image` should be edited. If there are multiple images provided, the mask will be applied on the first image. Must be a valid PNG file, less than 4MB, and have the same dimensions as `image`.
3945
/// </param>
@@ -64,6 +70,13 @@ public partial interface IImagesClient
6470
/// Default Value: png<br/>
6571
/// Example: png
6672
/// </param>
73+
/// <param name="partialImages">
74+
/// The number of partial images to generate. This parameter is used for<br/>
75+
/// streaming responses that return partial images. Value must be between 0 and 3.<br/>
76+
/// When set to 0, the response will be a single image sent in one streaming event.<br/>
77+
/// Default Value: 0<br/>
78+
/// Example: 1
79+
/// </param>
6780
/// <param name="prompt">
6881
/// A text description of the desired image(s). The maximum length is 1000 characters for `dall-e-2`, and 32000 characters for `gpt-image-1`.<br/>
6982
/// Example: A cute baby sea otter wearing a beret
@@ -83,6 +96,12 @@ public partial interface IImagesClient
8396
/// Default Value: 1024x1024<br/>
8497
/// Example: 1024x1024
8598
/// </param>
99+
/// <param name="stream">
100+
/// Edit the image in streaming mode. Defaults to `false`. See the <br/>
101+
/// [Image generation guide](/docs/guides/image-generation) for more information.<br/>
102+
/// Default Value: false<br/>
103+
/// Example: false
104+
/// </param>
86105
/// <param name="user">
87106
/// A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices#end-user-ids).<br/>
88107
/// Example: user-1234
@@ -93,15 +112,18 @@ public partial interface IImagesClient
93112
global::tryAGI.OpenAI.AnyOf<byte[], global::System.Collections.Generic.IList<byte[]>> image,
94113
string prompt,
95114
global::tryAGI.OpenAI.CreateImageEditRequestBackground? background = default,
115+
global::tryAGI.OpenAI.ImageInputFidelity? inputFidelity = default,
96116
byte[]? mask = default,
97117
string? maskname = default,
98118
global::tryAGI.OpenAI.AnyOf<string, global::tryAGI.OpenAI.CreateImageEditRequestModel?>? model = default,
99119
int? n = default,
100120
int? outputCompression = default,
101121
global::tryAGI.OpenAI.CreateImageEditRequestOutputFormat? outputFormat = default,
122+
int? partialImages = default,
102123
global::tryAGI.OpenAI.CreateImageEditRequestQuality? quality = default,
103124
global::tryAGI.OpenAI.CreateImageEditRequestResponseFormat? responseFormat = default,
104125
global::tryAGI.OpenAI.CreateImageEditRequestSize? size = default,
126+
bool? stream = default,
105127
string? user = default,
106128
global::System.Threading.CancellationToken cancellationToken = default);
107129
}

src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImage.g.cs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,13 @@ partial void ProcessCreateImageResponseContent(
203203
/// Default Value: png<br/>
204204
/// Example: png
205205
/// </param>
206+
/// <param name="partialImages">
207+
/// The number of partial images to generate. This parameter is used for<br/>
208+
/// streaming responses that return partial images. Value must be between 0 and 3.<br/>
209+
/// When set to 0, the response will be a single image sent in one streaming event.<br/>
210+
/// Default Value: 0<br/>
211+
/// Example: 1
212+
/// </param>
206213
/// <param name="prompt">
207214
/// A text description of the desired image(s). The maximum length is 32000 characters for `gpt-image-1`, 1000 characters for `dall-e-2` and 4000 characters for `dall-e-3`.<br/>
208215
/// Example: A cute baby sea otter
@@ -226,6 +233,13 @@ partial void ProcessCreateImageResponseContent(
226233
/// Default Value: auto<br/>
227234
/// Example: 1024x1024
228235
/// </param>
236+
/// <param name="stream">
237+
/// Generate the image in streaming mode. Defaults to `false`. See the <br/>
238+
/// [Image generation guide](/docs/guides/image-generation) for more information.<br/>
239+
/// This parameter is only supported for `gpt-image-1`.<br/>
240+
/// Default Value: false<br/>
241+
/// Example: false
242+
/// </param>
229243
/// <param name="style">
230244
/// The style of the generated images. This parameter is only supported for `dall-e-3`. Must be one of `vivid` or `natural`. Vivid causes the model to lean towards generating hyper-real and dramatic images. Natural causes the model to produce more natural, less hyper-real looking images.<br/>
231245
/// Default Value: vivid<br/>
@@ -245,9 +259,11 @@ partial void ProcessCreateImageResponseContent(
245259
int? n = default,
246260
int? outputCompression = default,
247261
global::tryAGI.OpenAI.CreateImageRequestOutputFormat? outputFormat = default,
262+
int? partialImages = default,
248263
global::tryAGI.OpenAI.CreateImageRequestQuality? quality = default,
249264
global::tryAGI.OpenAI.CreateImageRequestResponseFormat? responseFormat = default,
250265
global::tryAGI.OpenAI.CreateImageRequestSize? size = default,
266+
bool? stream = default,
251267
global::tryAGI.OpenAI.CreateImageRequestStyle? style = default,
252268
string? user = default,
253269
global::System.Threading.CancellationToken cancellationToken = default)
@@ -260,10 +276,12 @@ partial void ProcessCreateImageResponseContent(
260276
N = n,
261277
OutputCompression = outputCompression,
262278
OutputFormat = outputFormat,
279+
PartialImages = partialImages,
263280
Prompt = prompt,
264281
Quality = quality,
265282
ResponseFormat = responseFormat,
266283
Size = size,
284+
Stream = stream,
267285
Style = style,
268286
User = user,
269287
};

0 commit comments

Comments
 (0)