Skip to content

Commit b675ca2

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

File tree

51 files changed

+1434
-1822
lines changed

Some content is hidden

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

51 files changed

+1434
-1822
lines changed

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1279,10 +1279,6 @@ namespace tryAGI.OpenAI
12791279
typeof(global::tryAGI.OpenAI.JsonConverters.ResponseOutputTextAnnotationAddedEventTypeNullableJsonConverter),
12801280
typeof(global::tryAGI.OpenAI.JsonConverters.ResponseQueuedEventTypeJsonConverter),
12811281
typeof(global::tryAGI.OpenAI.JsonConverters.ResponseQueuedEventTypeNullableJsonConverter),
1282-
typeof(global::tryAGI.OpenAI.JsonConverters.ResponseReasoningDeltaEventTypeJsonConverter),
1283-
typeof(global::tryAGI.OpenAI.JsonConverters.ResponseReasoningDeltaEventTypeNullableJsonConverter),
1284-
typeof(global::tryAGI.OpenAI.JsonConverters.ResponseReasoningDoneEventTypeJsonConverter),
1285-
typeof(global::tryAGI.OpenAI.JsonConverters.ResponseReasoningDoneEventTypeNullableJsonConverter),
12861282
typeof(global::tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryDeltaEventTypeJsonConverter),
12871283
typeof(global::tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryDeltaEventTypeNullableJsonConverter),
12881284
typeof(global::tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryDoneEventTypeJsonConverter),

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ public partial interface IImagesClient
5656
/// The number of partial images to generate. This parameter is used for<br/>
5757
/// streaming responses that return partial images. Value must be between 0 and 3.<br/>
5858
/// When set to 0, the response will be a single image sent in one streaming event.<br/>
59+
/// Note that the final image may be sent before the full number of partial images <br/>
60+
/// are generated if the full image is generated more quickly.<br/>
5961
/// Default Value: 0<br/>
6062
/// Example: 1
6163
/// </param>

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ public partial interface IImagesClient
7474
/// The number of partial images to generate. This parameter is used for<br/>
7575
/// streaming responses that return partial images. Value must be between 0 and 3.<br/>
7676
/// When set to 0, the response will be a single image sent in one streaming event.<br/>
77+
/// Note that the final image may be sent before the full number of partial images <br/>
78+
/// are generated if the full image is generated more quickly.<br/>
7779
/// Default Value: 0<br/>
7880
/// Example: 1
7981
/// </param>

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,8 @@ partial void ProcessCreateImageResponseContent(
207207
/// The number of partial images to generate. This parameter is used for<br/>
208208
/// streaming responses that return partial images. Value must be between 0 and 3.<br/>
209209
/// When set to 0, the response will be a single image sent in one streaming event.<br/>
210+
/// Note that the final image may be sent before the full number of partial images <br/>
211+
/// are generated if the full image is generated more quickly.<br/>
210212
/// Default Value: 0<br/>
211213
/// Example: 1
212214
/// </param>

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,8 @@ partial void ProcessCreateImageEditResponseContent(
306306
/// The number of partial images to generate. This parameter is used for<br/>
307307
/// streaming responses that return partial images. Value must be between 0 and 3.<br/>
308308
/// When set to 0, the response will be a single image sent in one streaming event.<br/>
309+
/// Note that the final image may be sent before the full number of partial images <br/>
310+
/// are generated if the full image is generated more quickly.<br/>
309311
/// Default Value: 0<br/>
310312
/// Example: 1
311313
/// </param>

src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseReasoningDeltaEventType.g.cs

Lines changed: 0 additions & 53 deletions
This file was deleted.

src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseReasoningDeltaEventTypeNullable.g.cs

Lines changed: 0 additions & 60 deletions
This file was deleted.

src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseReasoningDoneEventType.g.cs

Lines changed: 0 additions & 53 deletions
This file was deleted.

src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseReasoningDoneEventTypeNullable.g.cs

Lines changed: 0 additions & 60 deletions
This file was deleted.

src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseStreamEvent.g.cs

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -604,30 +604,6 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali
604604
{
605605
}
606606

607-
readerCopy = reader;
608-
global::tryAGI.OpenAI.ResponseReasoningDeltaEvent? reasoningDelta = default;
609-
try
610-
{
611-
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::tryAGI.OpenAI.ResponseReasoningDeltaEvent> ??
612-
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningDeltaEvent).Name}");
613-
reasoningDelta = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo);
614-
}
615-
catch (global::System.Text.Json.JsonException)
616-
{
617-
}
618-
619-
readerCopy = reader;
620-
global::tryAGI.OpenAI.ResponseReasoningDoneEvent? reasoningDone = default;
621-
try
622-
{
623-
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::tryAGI.OpenAI.ResponseReasoningDoneEvent> ??
624-
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningDoneEvent).Name}");
625-
reasoningDone = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo);
626-
}
627-
catch (global::System.Text.Json.JsonException)
628-
{
629-
}
630-
631607
readerCopy = reader;
632608
global::tryAGI.OpenAI.ResponseReasoningSummaryDeltaEvent? reasoningSummaryDelta = default;
633609
try
@@ -702,8 +678,6 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali
702678
mCPListToolsInProgress,
703679
outputTextAnnotationAdded,
704680
queued,
705-
reasoningDelta,
706-
reasoningDone,
707681
reasoningSummaryDelta,
708682
reasoningSummaryDone
709683
);
@@ -1002,18 +976,6 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali
1002976
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseQueuedEvent).Name}");
1003977
_ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
1004978
}
1005-
else if (reasoningDelta != null)
1006-
{
1007-
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::tryAGI.OpenAI.ResponseReasoningDeltaEvent> ??
1008-
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningDeltaEvent).Name}");
1009-
_ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
1010-
}
1011-
else if (reasoningDone != null)
1012-
{
1013-
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::tryAGI.OpenAI.ResponseReasoningDoneEvent> ??
1014-
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningDoneEvent).Name}");
1015-
_ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
1016-
}
1017979
else if (reasoningSummaryDelta != null)
1018980
{
1019981
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::tryAGI.OpenAI.ResponseReasoningSummaryDeltaEvent> ??
@@ -1333,18 +1295,6 @@ public override void Write(
13331295
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseQueuedEvent).Name}");
13341296
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Queued, typeInfo);
13351297
}
1336-
else if (value.IsReasoningDelta)
1337-
{
1338-
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::tryAGI.OpenAI.ResponseReasoningDeltaEvent?> ??
1339-
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningDeltaEvent).Name}");
1340-
global::System.Text.Json.JsonSerializer.Serialize(writer, value.ReasoningDelta, typeInfo);
1341-
}
1342-
else if (value.IsReasoningDone)
1343-
{
1344-
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::tryAGI.OpenAI.ResponseReasoningDoneEvent?> ??
1345-
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningDoneEvent).Name}");
1346-
global::System.Text.Json.JsonSerializer.Serialize(writer, value.ReasoningDone, typeInfo);
1347-
}
13481298
else if (value.IsReasoningSummaryDelta)
13491299
{
13501300
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::tryAGI.OpenAI.ResponseReasoningSummaryDeltaEvent?> ??

0 commit comments

Comments
 (0)