diff --git a/src/libs/OpenAI/Generated/AnyOf.2.g.cs b/src/libs/OpenAI/Generated/AnyOf.2.g.cs
index 4d2f603f..0d0fe722 100644
--- a/src/libs/OpenAI/Generated/AnyOf.2.g.cs
+++ b/src/libs/OpenAI/Generated/AnyOf.2.g.cs
@@ -267,5 +267,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask?> FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AnyOf),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AnyOf?;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask?> FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync?>(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
diff --git a/src/libs/OpenAI/Generated/OneOf.1.g.cs b/src/libs/OpenAI/Generated/OneOf.1.g.cs
index f0bc28a1..691cc777 100644
--- a/src/libs/OpenAI/Generated/OneOf.1.g.cs
+++ b/src/libs/OpenAI/Generated/OneOf.1.g.cs
@@ -206,5 +206,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask?> FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.OneOf),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.OneOf?;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask?> FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync?>(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
diff --git a/src/libs/OpenAI/Generated/OneOf.2.g.cs b/src/libs/OpenAI/Generated/OneOf.2.g.cs
index e2945d1b..2c7bf8bc 100644
--- a/src/libs/OpenAI/Generated/OneOf.2.g.cs
+++ b/src/libs/OpenAI/Generated/OneOf.2.g.cs
@@ -267,5 +267,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask?> FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.OneOf),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.OneOf?;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask?> FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync?>(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
diff --git a/src/libs/OpenAI/Generated/OneOf.3.g.cs b/src/libs/OpenAI/Generated/OneOf.3.g.cs
index 219ea4fb..bb7a99fc 100644
--- a/src/libs/OpenAI/Generated/OneOf.3.g.cs
+++ b/src/libs/OpenAI/Generated/OneOf.3.g.cs
@@ -318,5 +318,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask?> FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.OneOf),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.OneOf?;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask?> FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync?>(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
diff --git a/src/libs/OpenAI/Generated/OneOf.4.g.cs b/src/libs/OpenAI/Generated/OneOf.4.g.cs
index 60582ca4..066b42ce 100644
--- a/src/libs/OpenAI/Generated/OneOf.4.g.cs
+++ b/src/libs/OpenAI/Generated/OneOf.4.g.cs
@@ -369,5 +369,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask?> FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.OneOf),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.OneOf?;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask?> FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync?>(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
diff --git a/src/libs/OpenAI/Generated/OneOf.5.g.cs b/src/libs/OpenAI/Generated/OneOf.5.g.cs
index 2d1f3893..565ba019 100644
--- a/src/libs/OpenAI/Generated/OneOf.5.g.cs
+++ b/src/libs/OpenAI/Generated/OneOf.5.g.cs
@@ -420,5 +420,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask?> FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.OneOf),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.OneOf?;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask?> FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync?>(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AddUploadPartRequest.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AddUploadPartRequest.g.cs
index ff50a105..1821f3b2 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AddUploadPartRequest.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AddUploadPartRequest.g.cs
@@ -85,5 +85,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AddUploadPartRequest),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AddUploadPartRequest;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AnnotationsItem.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AnnotationsItem.g.cs
index 88ca20cc..2733c5a6 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AnnotationsItem.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AnnotationsItem.g.cs
@@ -276,5 +276,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AnnotationsItem),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AnnotationsItem?;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AnnotationsItem2.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AnnotationsItem2.g.cs
index 61c2ff8d..af2f3c84 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AnnotationsItem2.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AnnotationsItem2.g.cs
@@ -276,5 +276,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AnnotationsItem2),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AnnotationsItem2?;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantObject.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantObject.g.cs
index 8bed5ca0..fffe6ea8 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantObject.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantObject.g.cs
@@ -168,5 +168,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AssistantObject),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AssistantObject;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantObjectMetadata.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantObjectMetadata.g.cs
index 0236c8b3..7e063cff 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantObjectMetadata.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantObjectMetadata.g.cs
@@ -72,5 +72,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AssistantObjectMetadata),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AssistantObjectMetadata;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantObjectToolDiscriminator.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantObjectToolDiscriminator.g.cs
index a2deeaa2..5600ec57 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantObjectToolDiscriminator.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantObjectToolDiscriminator.g.cs
@@ -78,5 +78,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AssistantObjectToolDiscriminator),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AssistantObjectToolDiscriminator;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantObjectToolResources.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantObjectToolResources.g.cs
index a7b814d8..ee984e73 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantObjectToolResources.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantObjectToolResources.g.cs
@@ -83,5 +83,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AssistantObjectToolResources),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AssistantObjectToolResources;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantObjectToolResourcesCodeInterpreter.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantObjectToolResourcesCodeInterpreter.g.cs
index a12bf345..39b6005f 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantObjectToolResourcesCodeInterpreter.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantObjectToolResourcesCodeInterpreter.g.cs
@@ -77,5 +77,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AssistantObjectToolResourcesCodeInterpreter),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AssistantObjectToolResourcesCodeInterpreter;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantObjectToolResourcesFileSearch.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantObjectToolResourcesFileSearch.g.cs
index d853e1cd..f6f58ccf 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantObjectToolResourcesFileSearch.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantObjectToolResourcesFileSearch.g.cs
@@ -77,5 +77,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AssistantObjectToolResourcesFileSearch),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AssistantObjectToolResourcesFileSearch;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEvent.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEvent.g.cs
index 44e23245..1ee7501d 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEvent.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEvent.g.cs
@@ -1463,5 +1463,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AssistantStreamEvent),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AssistantStreamEvent?;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventDiscriminator.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventDiscriminator.g.cs
index c7db9d61..63d0fb6f 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventDiscriminator.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventDiscriminator.g.cs
@@ -78,5 +78,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AssistantStreamEventDiscriminator),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AssistantStreamEventDiscriminator;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant10.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant10.g.cs
index e2f14073..3ca2865b 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant10.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant10.g.cs
@@ -85,5 +85,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AssistantStreamEventVariant10),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AssistantStreamEventVariant10;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant11.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant11.g.cs
index 6f23b1d7..90cb323e 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant11.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant11.g.cs
@@ -85,5 +85,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AssistantStreamEventVariant11),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AssistantStreamEventVariant11;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant12.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant12.g.cs
index 05dc620d..23fb45b8 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant12.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant12.g.cs
@@ -85,5 +85,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AssistantStreamEventVariant12),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AssistantStreamEventVariant12;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant13.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant13.g.cs
index b9833ecb..fd7ddba2 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant13.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant13.g.cs
@@ -85,5 +85,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AssistantStreamEventVariant13),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AssistantStreamEventVariant13;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant14.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant14.g.cs
index aef93468..22a9d01e 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant14.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant14.g.cs
@@ -85,5 +85,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AssistantStreamEventVariant14),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AssistantStreamEventVariant14;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant15.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant15.g.cs
index 2462cb7d..0eb21bf8 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant15.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant15.g.cs
@@ -85,5 +85,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AssistantStreamEventVariant15),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AssistantStreamEventVariant15;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant16.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant16.g.cs
index 082f55f9..91648dad 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant16.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant16.g.cs
@@ -85,5 +85,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AssistantStreamEventVariant16),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AssistantStreamEventVariant16;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant17.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant17.g.cs
index 6df605ca..44a7199c 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant17.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant17.g.cs
@@ -85,5 +85,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AssistantStreamEventVariant17),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AssistantStreamEventVariant17;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant18.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant18.g.cs
index 2f5c4455..85d528bc 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant18.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant18.g.cs
@@ -85,5 +85,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AssistantStreamEventVariant18),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AssistantStreamEventVariant18;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant19.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant19.g.cs
index 4ff4f9b2..66a952c0 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant19.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant19.g.cs
@@ -85,5 +85,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AssistantStreamEventVariant19),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AssistantStreamEventVariant19;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant20.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant20.g.cs
index 1d718795..1918809a 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant20.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant20.g.cs
@@ -85,5 +85,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AssistantStreamEventVariant20),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AssistantStreamEventVariant20;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant21.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant21.g.cs
index 7a71c94e..33b860af 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant21.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant21.g.cs
@@ -85,5 +85,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AssistantStreamEventVariant21),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AssistantStreamEventVariant21;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant22.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant22.g.cs
index 4a2fc8eb..70fbeef8 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant22.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant22.g.cs
@@ -85,5 +85,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AssistantStreamEventVariant22),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AssistantStreamEventVariant22;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant23.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant23.g.cs
index 54dc4a12..181bbd56 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant23.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant23.g.cs
@@ -85,5 +85,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AssistantStreamEventVariant23),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AssistantStreamEventVariant23;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant24.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant24.g.cs
index 9ae569d1..87f28ec2 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant24.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant24.g.cs
@@ -85,5 +85,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AssistantStreamEventVariant24),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AssistantStreamEventVariant24;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant25.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant25.g.cs
index d4a87f06..5d5aee42 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant25.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant25.g.cs
@@ -85,5 +85,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AssistantStreamEventVariant25),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AssistantStreamEventVariant25;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant3.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant3.g.cs
index efc62d43..d5b09226 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant3.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant3.g.cs
@@ -91,5 +91,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AssistantStreamEventVariant3),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AssistantStreamEventVariant3;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant4.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant4.g.cs
index a63f97bb..77e308c2 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant4.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant4.g.cs
@@ -85,5 +85,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AssistantStreamEventVariant4),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AssistantStreamEventVariant4;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant5.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant5.g.cs
index d244f292..ed06c734 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant5.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant5.g.cs
@@ -85,5 +85,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AssistantStreamEventVariant5),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AssistantStreamEventVariant5;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant6.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant6.g.cs
index 8ec78a10..7b08c34f 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant6.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant6.g.cs
@@ -85,5 +85,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AssistantStreamEventVariant6),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AssistantStreamEventVariant6;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant7.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant7.g.cs
index 25e93681..52636a9d 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant7.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant7.g.cs
@@ -85,5 +85,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AssistantStreamEventVariant7),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AssistantStreamEventVariant7;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant8.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant8.g.cs
index 38a4d9b0..bceb6249 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant8.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant8.g.cs
@@ -85,5 +85,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AssistantStreamEventVariant8),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AssistantStreamEventVariant8;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant9.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant9.g.cs
index 15b4eacd..e4d32638 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant9.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEventVariant9.g.cs
@@ -85,5 +85,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AssistantStreamEventVariant9),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AssistantStreamEventVariant9;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantToolsCode.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantToolsCode.g.cs
index 2b7f88dc..7c231b4e 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantToolsCode.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantToolsCode.g.cs
@@ -78,5 +78,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AssistantToolsCode),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AssistantToolsCode;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantToolsFileSearch.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantToolsFileSearch.g.cs
index aa1a086b..a35e2ea8 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantToolsFileSearch.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantToolsFileSearch.g.cs
@@ -84,5 +84,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AssistantToolsFileSearch),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AssistantToolsFileSearch;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantToolsFileSearchFileSearch.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantToolsFileSearchFileSearch.g.cs
index b88b8e6d..22ad0ff6 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantToolsFileSearchFileSearch.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantToolsFileSearchFileSearch.g.cs
@@ -85,5 +85,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AssistantToolsFileSearchFileSearch),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AssistantToolsFileSearchFileSearch;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantToolsFileSearchTypeOnly.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantToolsFileSearchTypeOnly.g.cs
index 1640f0c3..87f2789c 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantToolsFileSearchTypeOnly.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantToolsFileSearchTypeOnly.g.cs
@@ -78,5 +78,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AssistantToolsFileSearchTypeOnly),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AssistantToolsFileSearchTypeOnly;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantToolsFunction.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantToolsFunction.g.cs
index b1be1670..84c0a8d0 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantToolsFunction.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantToolsFunction.g.cs
@@ -85,5 +85,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AssistantToolsFunction),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AssistantToolsFunction;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantsApiResponseFormatOption.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantsApiResponseFormatOption.g.cs
index ef43242e..a32883a2 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantsApiResponseFormatOption.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantsApiResponseFormatOption.g.cs
@@ -373,5 +373,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AssistantsApiResponseFormatOption),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AssistantsApiResponseFormatOption?;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantsApiToolChoiceOption.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantsApiToolChoiceOption.g.cs
index cbf24038..14e9125b 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantsApiToolChoiceOption.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantsApiToolChoiceOption.g.cs
@@ -272,5 +272,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AssistantsApiToolChoiceOption),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AssistantsApiToolChoiceOption?;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantsNamedToolChoice.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantsNamedToolChoice.g.cs
index c4837923..936598fa 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantsNamedToolChoice.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantsNamedToolChoice.g.cs
@@ -85,5 +85,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AssistantsNamedToolChoice),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AssistantsNamedToolChoice;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantsNamedToolChoiceFunction.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantsNamedToolChoiceFunction.g.cs
index 59b0367a..e4fe56d3 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantsNamedToolChoiceFunction.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantsNamedToolChoiceFunction.g.cs
@@ -78,5 +78,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AssistantsNamedToolChoiceFunction),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AssistantsNamedToolChoiceFunction;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AuditLog.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AuditLog.g.cs
index f4569b0c..07674862 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AuditLog.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AuditLog.g.cs
@@ -215,5 +215,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AuditLog),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AuditLog;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogActor.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogActor.g.cs
index d8592edd..83fc69be 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogActor.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogActor.g.cs
@@ -90,5 +90,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AuditLogActor),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AuditLogActor;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogActorApiKey.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogActorApiKey.g.cs
index 23d9e7ec..848d7b85 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogActorApiKey.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogActorApiKey.g.cs
@@ -96,5 +96,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AuditLogActorApiKey),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AuditLogActorApiKey;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogActorServiceAccount.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogActorServiceAccount.g.cs
index f60d5c85..5b479134 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogActorServiceAccount.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogActorServiceAccount.g.cs
@@ -77,5 +77,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AuditLogActorServiceAccount),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AuditLogActorServiceAccount;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogActorSession.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogActorSession.g.cs
index c40ed6f3..a06a3ba3 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogActorSession.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogActorSession.g.cs
@@ -83,5 +83,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AuditLogActorSession),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AuditLogActorSession;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogActorUser.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogActorUser.g.cs
index b9ef4707..36f00f52 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogActorUser.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogActorUser.g.cs
@@ -83,5 +83,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AuditLogActorUser),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AuditLogActorUser;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogApiKeyCreated.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogApiKeyCreated.g.cs
index 5f38c95d..72851bdd 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogApiKeyCreated.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogApiKeyCreated.g.cs
@@ -83,5 +83,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AuditLogApiKeyCreated),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AuditLogApiKeyCreated;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogApiKeyCreatedData.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogApiKeyCreatedData.g.cs
index c87bb686..ab9bac90 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogApiKeyCreatedData.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogApiKeyCreatedData.g.cs
@@ -77,5 +77,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AuditLogApiKeyCreatedData),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AuditLogApiKeyCreatedData;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogApiKeyDeleted.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogApiKeyDeleted.g.cs
index 3d015ab3..0697d1dc 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogApiKeyDeleted.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogApiKeyDeleted.g.cs
@@ -77,5 +77,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AuditLogApiKeyDeleted),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AuditLogApiKeyDeleted;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogApiKeyUpdated.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogApiKeyUpdated.g.cs
index c4a22f88..84b79f0a 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogApiKeyUpdated.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogApiKeyUpdated.g.cs
@@ -83,5 +83,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AuditLogApiKeyUpdated),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AuditLogApiKeyUpdated;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogApiKeyUpdatedChangesRequested.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogApiKeyUpdatedChangesRequested.g.cs
index 0ca96d42..3f3eb74b 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogApiKeyUpdatedChangesRequested.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogApiKeyUpdatedChangesRequested.g.cs
@@ -77,5 +77,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AuditLogApiKeyUpdatedChangesRequested),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AuditLogApiKeyUpdatedChangesRequested;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogInviteAccepted.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogInviteAccepted.g.cs
index 222d338f..48641bb4 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogInviteAccepted.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogInviteAccepted.g.cs
@@ -77,5 +77,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AuditLogInviteAccepted),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AuditLogInviteAccepted;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogInviteDeleted.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogInviteDeleted.g.cs
index 46051f29..a01b4b51 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogInviteDeleted.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogInviteDeleted.g.cs
@@ -77,5 +77,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AuditLogInviteDeleted),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AuditLogInviteDeleted;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogInviteSent.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogInviteSent.g.cs
index 7c83f6f7..fb8d7d8f 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogInviteSent.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogInviteSent.g.cs
@@ -83,5 +83,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AuditLogInviteSent),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AuditLogInviteSent;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogInviteSentData.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogInviteSentData.g.cs
index 93495293..1111f887 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogInviteSentData.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogInviteSentData.g.cs
@@ -83,5 +83,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AuditLogInviteSentData),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AuditLogInviteSentData;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogLoginFailed.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogLoginFailed.g.cs
index 46a1ea6b..aca79105 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogLoginFailed.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogLoginFailed.g.cs
@@ -83,5 +83,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AuditLogLoginFailed),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AuditLogLoginFailed;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogLogoutFailed.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogLogoutFailed.g.cs
index e83c7438..84886dfd 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogLogoutFailed.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogLogoutFailed.g.cs
@@ -83,5 +83,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AuditLogLogoutFailed),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AuditLogLogoutFailed;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogOrganizationUpdated.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogOrganizationUpdated.g.cs
index bd475e02..bf985adb 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogOrganizationUpdated.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogOrganizationUpdated.g.cs
@@ -83,5 +83,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AuditLogOrganizationUpdated),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AuditLogOrganizationUpdated;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogOrganizationUpdatedChangesRequested.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogOrganizationUpdatedChangesRequested.g.cs
index 7ce1cd20..90dc7f56 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogOrganizationUpdatedChangesRequested.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogOrganizationUpdatedChangesRequested.g.cs
@@ -95,5 +95,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AuditLogOrganizationUpdatedChangesRequested),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AuditLogOrganizationUpdatedChangesRequested;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogOrganizationUpdatedChangesRequestedSettings.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogOrganizationUpdatedChangesRequestedSettings.g.cs
index 762aa1f1..7a6139be 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogOrganizationUpdatedChangesRequestedSettings.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogOrganizationUpdatedChangesRequestedSettings.g.cs
@@ -83,5 +83,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AuditLogOrganizationUpdatedChangesRequestedSettings),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AuditLogOrganizationUpdatedChangesRequestedSettings;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogProject.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogProject.g.cs
index 326543d2..a2ddf7c2 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogProject.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogProject.g.cs
@@ -83,5 +83,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AuditLogProject),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AuditLogProject;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogProjectArchived.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogProjectArchived.g.cs
index a6890319..29039bbb 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogProjectArchived.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogProjectArchived.g.cs
@@ -77,5 +77,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AuditLogProjectArchived),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AuditLogProjectArchived;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogProjectCreated.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogProjectCreated.g.cs
index c83e78d0..23e84512 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogProjectCreated.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogProjectCreated.g.cs
@@ -83,5 +83,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AuditLogProjectCreated),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AuditLogProjectCreated;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogProjectCreatedData.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogProjectCreatedData.g.cs
index 27699c36..20e0b70d 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogProjectCreatedData.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogProjectCreatedData.g.cs
@@ -83,5 +83,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AuditLogProjectCreatedData),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AuditLogProjectCreatedData;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogProjectUpdated.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogProjectUpdated.g.cs
index eff20c3d..64bd1b9c 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogProjectUpdated.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogProjectUpdated.g.cs
@@ -83,5 +83,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AuditLogProjectUpdated),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AuditLogProjectUpdated;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogProjectUpdatedChangesRequested.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogProjectUpdatedChangesRequested.g.cs
index 9031554b..40e1719a 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogProjectUpdatedChangesRequested.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogProjectUpdatedChangesRequested.g.cs
@@ -77,5 +77,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AuditLogProjectUpdatedChangesRequested),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AuditLogProjectUpdatedChangesRequested;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogServiceAccountCreated.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogServiceAccountCreated.g.cs
index a2e68376..76be6c95 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogServiceAccountCreated.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogServiceAccountCreated.g.cs
@@ -83,5 +83,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AuditLogServiceAccountCreated),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AuditLogServiceAccountCreated;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogServiceAccountCreatedData.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogServiceAccountCreatedData.g.cs
index 8f9d0f4b..f7c98017 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogServiceAccountCreatedData.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogServiceAccountCreatedData.g.cs
@@ -77,5 +77,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AuditLogServiceAccountCreatedData),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AuditLogServiceAccountCreatedData;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogServiceAccountDeleted.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogServiceAccountDeleted.g.cs
index 40d668ef..a209151a 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogServiceAccountDeleted.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogServiceAccountDeleted.g.cs
@@ -77,5 +77,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AuditLogServiceAccountDeleted),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AuditLogServiceAccountDeleted;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogServiceAccountUpdated.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogServiceAccountUpdated.g.cs
index 4b9d87ba..67ec32d0 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogServiceAccountUpdated.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogServiceAccountUpdated.g.cs
@@ -83,5 +83,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AuditLogServiceAccountUpdated),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AuditLogServiceAccountUpdated;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogServiceAccountUpdatedChangesRequested.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogServiceAccountUpdatedChangesRequested.g.cs
index 6bde445b..e6e32277 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogServiceAccountUpdatedChangesRequested.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogServiceAccountUpdatedChangesRequested.g.cs
@@ -77,5 +77,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AuditLogServiceAccountUpdatedChangesRequested),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AuditLogServiceAccountUpdatedChangesRequested;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+
}
}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogUserAdded.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogUserAdded.g.cs
index 8e2bd0fd..7329fcbd 100644
--- a/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogUserAdded.g.cs
+++ b/src/libs/OpenAI/Generated/OpenAI.Models.AuditLogUserAdded.g.cs
@@ -83,5 +83,34 @@ public string ToJson(
jsonSerializerOptions);
}
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::OpenAI.AuditLogUserAdded),
+ jsonSerializerContext).ConfigureAwait(false)) as global::OpenAI.AuditLogUserAdded;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStream(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync