Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1279,10 +1279,6 @@ namespace tryAGI.OpenAI
typeof(global::tryAGI.OpenAI.JsonConverters.ResponseOutputTextAnnotationAddedEventTypeNullableJsonConverter),
typeof(global::tryAGI.OpenAI.JsonConverters.ResponseQueuedEventTypeJsonConverter),
typeof(global::tryAGI.OpenAI.JsonConverters.ResponseQueuedEventTypeNullableJsonConverter),
typeof(global::tryAGI.OpenAI.JsonConverters.ResponseReasoningDeltaEventTypeJsonConverter),
typeof(global::tryAGI.OpenAI.JsonConverters.ResponseReasoningDeltaEventTypeNullableJsonConverter),
typeof(global::tryAGI.OpenAI.JsonConverters.ResponseReasoningDoneEventTypeJsonConverter),
typeof(global::tryAGI.OpenAI.JsonConverters.ResponseReasoningDoneEventTypeNullableJsonConverter),
typeof(global::tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryDeltaEventTypeJsonConverter),
typeof(global::tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryDeltaEventTypeNullableJsonConverter),
typeof(global::tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryDoneEventTypeJsonConverter),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ public partial interface IImagesClient
/// The number of partial images to generate. This parameter is used for<br/>
/// streaming responses that return partial images. Value must be between 0 and 3.<br/>
/// When set to 0, the response will be a single image sent in one streaming event.<br/>
/// Note that the final image may be sent before the full number of partial images <br/>
/// are generated if the full image is generated more quickly.<br/>
/// Default Value: 0<br/>
/// Example: 1
/// </param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ public partial interface IImagesClient
/// The number of partial images to generate. This parameter is used for<br/>
/// streaming responses that return partial images. Value must be between 0 and 3.<br/>
/// When set to 0, the response will be a single image sent in one streaming event.<br/>
/// Note that the final image may be sent before the full number of partial images <br/>
/// are generated if the full image is generated more quickly.<br/>
/// Default Value: 0<br/>
/// Example: 1
/// </param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,8 @@ partial void ProcessCreateImageResponseContent(
/// The number of partial images to generate. This parameter is used for<br/>
/// streaming responses that return partial images. Value must be between 0 and 3.<br/>
/// When set to 0, the response will be a single image sent in one streaming event.<br/>
/// Note that the final image may be sent before the full number of partial images <br/>
/// are generated if the full image is generated more quickly.<br/>
/// Default Value: 0<br/>
/// Example: 1
/// </param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,8 @@ partial void ProcessCreateImageEditResponseContent(
/// The number of partial images to generate. This parameter is used for<br/>
/// streaming responses that return partial images. Value must be between 0 and 3.<br/>
/// When set to 0, the response will be a single image sent in one streaming event.<br/>
/// Note that the final image may be sent before the full number of partial images <br/>
/// are generated if the full image is generated more quickly.<br/>
/// Default Value: 0<br/>
/// Example: 1
/// </param>
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -604,30 +604,6 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali
{
}

readerCopy = reader;
global::tryAGI.OpenAI.ResponseReasoningDeltaEvent? reasoningDelta = default;
try
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::tryAGI.OpenAI.ResponseReasoningDeltaEvent> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningDeltaEvent).Name}");
reasoningDelta = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo);
}
catch (global::System.Text.Json.JsonException)
{
}

readerCopy = reader;
global::tryAGI.OpenAI.ResponseReasoningDoneEvent? reasoningDone = default;
try
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::tryAGI.OpenAI.ResponseReasoningDoneEvent> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningDoneEvent).Name}");
reasoningDone = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo);
}
catch (global::System.Text.Json.JsonException)
{
}

readerCopy = reader;
global::tryAGI.OpenAI.ResponseReasoningSummaryDeltaEvent? reasoningSummaryDelta = default;
try
Expand Down Expand Up @@ -702,8 +678,6 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali
mCPListToolsInProgress,
outputTextAnnotationAdded,
queued,
reasoningDelta,
reasoningDone,
reasoningSummaryDelta,
reasoningSummaryDone
);
Expand Down Expand Up @@ -1002,18 +976,6 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseQueuedEvent).Name}");
_ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
}
else if (reasoningDelta != null)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::tryAGI.OpenAI.ResponseReasoningDeltaEvent> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningDeltaEvent).Name}");
_ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
}
else if (reasoningDone != null)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::tryAGI.OpenAI.ResponseReasoningDoneEvent> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningDoneEvent).Name}");
_ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
}
else if (reasoningSummaryDelta != null)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::tryAGI.OpenAI.ResponseReasoningSummaryDeltaEvent> ??
Expand Down Expand Up @@ -1333,18 +1295,6 @@ public override void Write(
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseQueuedEvent).Name}");
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Queued, typeInfo);
}
else if (value.IsReasoningDelta)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::tryAGI.OpenAI.ResponseReasoningDeltaEvent?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningDeltaEvent).Name}");
global::System.Text.Json.JsonSerializer.Serialize(writer, value.ReasoningDelta, typeInfo);
}
else if (value.IsReasoningDone)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::tryAGI.OpenAI.ResponseReasoningDoneEvent?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningDoneEvent).Name}");
global::System.Text.Json.JsonSerializer.Serialize(writer, value.ReasoningDone, typeInfo);
}
else if (value.IsReasoningSummaryDelta)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::tryAGI.OpenAI.ResponseReasoningSummaryDeltaEvent?> ??
Expand Down
Loading