diff --git a/src/libs/OpenAI/Generated/JsonConverters.CostsResultObject.g.cs b/src/libs/OpenAI/Generated/JsonConverters.CostsResultObject.g.cs
new file mode 100644
index 00000000..12ecfc6b
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.CostsResultObject.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class CostsResultObjectJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.CostsResultObject Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.CostsResultObjectExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.CostsResultObject)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.CostsResultObject value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.CostsResultObjectExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.CostsResultObjectNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.CostsResultObjectNullable.g.cs
new file mode 100644
index 00000000..9aadcc0d
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.CostsResultObjectNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class CostsResultObjectNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.CostsResultObject? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.CostsResultObjectExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.CostsResultObject)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.CostsResultObject? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.CostsResultObjectExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeClientEventConversationItemCreateType.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeClientEventConversationItemCreateType.g.cs
new file mode 100644
index 00000000..f2c11bb6
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeClientEventConversationItemCreateType.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeClientEventConversationItemCreateTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeClientEventConversationItemCreateType Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeClientEventConversationItemCreateTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeClientEventConversationItemCreateType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeClientEventConversationItemCreateType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.RealtimeClientEventConversationItemCreateTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeClientEventConversationItemCreateTypeNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeClientEventConversationItemCreateTypeNullable.g.cs
new file mode 100644
index 00000000..7805f035
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeClientEventConversationItemCreateTypeNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeClientEventConversationItemCreateTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeClientEventConversationItemCreateType? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeClientEventConversationItemCreateTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeClientEventConversationItemCreateType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeClientEventConversationItemCreateType? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.RealtimeClientEventConversationItemCreateTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeClientEventConversationItemDeleteType.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeClientEventConversationItemDeleteType.g.cs
new file mode 100644
index 00000000..159e9763
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeClientEventConversationItemDeleteType.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeClientEventConversationItemDeleteTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeClientEventConversationItemDeleteType Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeClientEventConversationItemDeleteTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeClientEventConversationItemDeleteType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeClientEventConversationItemDeleteType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.RealtimeClientEventConversationItemDeleteTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeClientEventConversationItemDeleteTypeNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeClientEventConversationItemDeleteTypeNullable.g.cs
new file mode 100644
index 00000000..b5c64c93
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeClientEventConversationItemDeleteTypeNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeClientEventConversationItemDeleteTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeClientEventConversationItemDeleteType? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeClientEventConversationItemDeleteTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeClientEventConversationItemDeleteType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeClientEventConversationItemDeleteType? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.RealtimeClientEventConversationItemDeleteTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeClientEventConversationItemTruncateType.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeClientEventConversationItemTruncateType.g.cs
new file mode 100644
index 00000000..57331a00
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeClientEventConversationItemTruncateType.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeClientEventConversationItemTruncateTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeClientEventConversationItemTruncateType Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeClientEventConversationItemTruncateTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeClientEventConversationItemTruncateType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeClientEventConversationItemTruncateType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.RealtimeClientEventConversationItemTruncateTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeClientEventConversationItemTruncateTypeNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeClientEventConversationItemTruncateTypeNullable.g.cs
new file mode 100644
index 00000000..84ceee61
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeClientEventConversationItemTruncateTypeNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeClientEventConversationItemTruncateTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeClientEventConversationItemTruncateType? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeClientEventConversationItemTruncateTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeClientEventConversationItemTruncateType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeClientEventConversationItemTruncateType? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.RealtimeClientEventConversationItemTruncateTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeClientEventInputAudioBufferAppendType.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeClientEventInputAudioBufferAppendType.g.cs
new file mode 100644
index 00000000..d36e7305
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeClientEventInputAudioBufferAppendType.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeClientEventInputAudioBufferAppendTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeClientEventInputAudioBufferAppendType Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeClientEventInputAudioBufferAppendTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeClientEventInputAudioBufferAppendType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeClientEventInputAudioBufferAppendType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.RealtimeClientEventInputAudioBufferAppendTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeClientEventInputAudioBufferAppendTypeNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeClientEventInputAudioBufferAppendTypeNullable.g.cs
new file mode 100644
index 00000000..a4d6c8c7
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeClientEventInputAudioBufferAppendTypeNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeClientEventInputAudioBufferAppendTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeClientEventInputAudioBufferAppendType? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeClientEventInputAudioBufferAppendTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeClientEventInputAudioBufferAppendType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeClientEventInputAudioBufferAppendType? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.RealtimeClientEventInputAudioBufferAppendTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeClientEventInputAudioBufferClearType.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeClientEventInputAudioBufferClearType.g.cs
new file mode 100644
index 00000000..416e7a4c
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeClientEventInputAudioBufferClearType.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeClientEventInputAudioBufferClearTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeClientEventInputAudioBufferClearType Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeClientEventInputAudioBufferClearTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeClientEventInputAudioBufferClearType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeClientEventInputAudioBufferClearType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.RealtimeClientEventInputAudioBufferClearTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeClientEventInputAudioBufferClearTypeNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeClientEventInputAudioBufferClearTypeNullable.g.cs
new file mode 100644
index 00000000..ad543aaa
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeClientEventInputAudioBufferClearTypeNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeClientEventInputAudioBufferClearTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeClientEventInputAudioBufferClearType? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeClientEventInputAudioBufferClearTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeClientEventInputAudioBufferClearType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeClientEventInputAudioBufferClearType? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.RealtimeClientEventInputAudioBufferClearTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeClientEventInputAudioBufferCommitType.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeClientEventInputAudioBufferCommitType.g.cs
new file mode 100644
index 00000000..ddb73518
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeClientEventInputAudioBufferCommitType.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeClientEventInputAudioBufferCommitTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeClientEventInputAudioBufferCommitType Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeClientEventInputAudioBufferCommitTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeClientEventInputAudioBufferCommitType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeClientEventInputAudioBufferCommitType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.RealtimeClientEventInputAudioBufferCommitTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeClientEventInputAudioBufferCommitTypeNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeClientEventInputAudioBufferCommitTypeNullable.g.cs
new file mode 100644
index 00000000..424e0f2e
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeClientEventInputAudioBufferCommitTypeNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeClientEventInputAudioBufferCommitTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeClientEventInputAudioBufferCommitType? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeClientEventInputAudioBufferCommitTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeClientEventInputAudioBufferCommitType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeClientEventInputAudioBufferCommitType? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.RealtimeClientEventInputAudioBufferCommitTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeClientEventResponseCancelType.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeClientEventResponseCancelType.g.cs
new file mode 100644
index 00000000..fc2badb7
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeClientEventResponseCancelType.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeClientEventResponseCancelTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeClientEventResponseCancelType Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeClientEventResponseCancelTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeClientEventResponseCancelType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeClientEventResponseCancelType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.RealtimeClientEventResponseCancelTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeClientEventResponseCancelTypeNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeClientEventResponseCancelTypeNullable.g.cs
new file mode 100644
index 00000000..4a2cb0c5
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeClientEventResponseCancelTypeNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeClientEventResponseCancelTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeClientEventResponseCancelType? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeClientEventResponseCancelTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeClientEventResponseCancelType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeClientEventResponseCancelType? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.RealtimeClientEventResponseCancelTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeClientEventResponseCreateType.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeClientEventResponseCreateType.g.cs
new file mode 100644
index 00000000..06045d9d
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeClientEventResponseCreateType.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeClientEventResponseCreateTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeClientEventResponseCreateType Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeClientEventResponseCreateTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeClientEventResponseCreateType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeClientEventResponseCreateType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.RealtimeClientEventResponseCreateTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeClientEventResponseCreateTypeNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeClientEventResponseCreateTypeNullable.g.cs
new file mode 100644
index 00000000..b9e0c97f
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeClientEventResponseCreateTypeNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeClientEventResponseCreateTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeClientEventResponseCreateType? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeClientEventResponseCreateTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeClientEventResponseCreateType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeClientEventResponseCreateType? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.RealtimeClientEventResponseCreateTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeClientEventSessionUpdateType.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeClientEventSessionUpdateType.g.cs
new file mode 100644
index 00000000..9e5ddf9b
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeClientEventSessionUpdateType.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeClientEventSessionUpdateTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeClientEventSessionUpdateType Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeClientEventSessionUpdateTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeClientEventSessionUpdateType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeClientEventSessionUpdateType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.RealtimeClientEventSessionUpdateTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeClientEventSessionUpdateTypeNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeClientEventSessionUpdateTypeNullable.g.cs
new file mode 100644
index 00000000..4dddeceb
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeClientEventSessionUpdateTypeNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeClientEventSessionUpdateTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeClientEventSessionUpdateType? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeClientEventSessionUpdateTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeClientEventSessionUpdateType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeClientEventSessionUpdateType? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.RealtimeClientEventSessionUpdateTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventConversationCreatedType.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventConversationCreatedType.g.cs
new file mode 100644
index 00000000..db89da9f
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventConversationCreatedType.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeServerEventConversationCreatedTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeServerEventConversationCreatedType Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeServerEventConversationCreatedTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeServerEventConversationCreatedType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeServerEventConversationCreatedType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.RealtimeServerEventConversationCreatedTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventConversationCreatedTypeNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventConversationCreatedTypeNullable.g.cs
new file mode 100644
index 00000000..ef2551ad
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventConversationCreatedTypeNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeServerEventConversationCreatedTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeServerEventConversationCreatedType? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeServerEventConversationCreatedTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeServerEventConversationCreatedType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeServerEventConversationCreatedType? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.RealtimeServerEventConversationCreatedTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventConversationItemCreatedType.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventConversationItemCreatedType.g.cs
new file mode 100644
index 00000000..a66685a0
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventConversationItemCreatedType.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeServerEventConversationItemCreatedTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeServerEventConversationItemCreatedType Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeServerEventConversationItemCreatedTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeServerEventConversationItemCreatedType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeServerEventConversationItemCreatedType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.RealtimeServerEventConversationItemCreatedTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventConversationItemCreatedTypeNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventConversationItemCreatedTypeNullable.g.cs
new file mode 100644
index 00000000..6fceead6
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventConversationItemCreatedTypeNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeServerEventConversationItemCreatedTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeServerEventConversationItemCreatedType? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeServerEventConversationItemCreatedTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeServerEventConversationItemCreatedType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeServerEventConversationItemCreatedType? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.RealtimeServerEventConversationItemCreatedTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventConversationItemDeletedType.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventConversationItemDeletedType.g.cs
new file mode 100644
index 00000000..85327708
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventConversationItemDeletedType.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeServerEventConversationItemDeletedTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeServerEventConversationItemDeletedType Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeServerEventConversationItemDeletedTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeServerEventConversationItemDeletedType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeServerEventConversationItemDeletedType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.RealtimeServerEventConversationItemDeletedTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventConversationItemDeletedTypeNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventConversationItemDeletedTypeNullable.g.cs
new file mode 100644
index 00000000..54fc5be0
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventConversationItemDeletedTypeNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeServerEventConversationItemDeletedTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeServerEventConversationItemDeletedType? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeServerEventConversationItemDeletedTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeServerEventConversationItemDeletedType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeServerEventConversationItemDeletedType? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.RealtimeServerEventConversationItemDeletedTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventConversationItemInputAudioTranscriptionCompletedType.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventConversationItemInputAudioTranscriptionCompletedType.g.cs
new file mode 100644
index 00000000..7ac5cd3d
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventConversationItemInputAudioTranscriptionCompletedType.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeServerEventConversationItemInputAudioTranscriptionCompletedTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompletedType Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompletedTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompletedType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompletedType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompletedTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventConversationItemInputAudioTranscriptionCompletedTypeNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventConversationItemInputAudioTranscriptionCompletedTypeNullable.g.cs
new file mode 100644
index 00000000..c992d966
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventConversationItemInputAudioTranscriptionCompletedTypeNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeServerEventConversationItemInputAudioTranscriptionCompletedTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompletedType? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompletedTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompletedType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompletedType? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompletedTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventConversationItemInputAudioTranscriptionFailedType.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventConversationItemInputAudioTranscriptionFailedType.g.cs
new file mode 100644
index 00000000..81c9e218
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventConversationItemInputAudioTranscriptionFailedType.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeServerEventConversationItemInputAudioTranscriptionFailedTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailedType Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailedTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailedType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailedType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailedTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventConversationItemInputAudioTranscriptionFailedTypeNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventConversationItemInputAudioTranscriptionFailedTypeNullable.g.cs
new file mode 100644
index 00000000..30ecd8b2
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventConversationItemInputAudioTranscriptionFailedTypeNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeServerEventConversationItemInputAudioTranscriptionFailedTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailedType? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailedTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailedType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailedType? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailedTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventConversationItemTruncatedType.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventConversationItemTruncatedType.g.cs
new file mode 100644
index 00000000..0d54dc58
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventConversationItemTruncatedType.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeServerEventConversationItemTruncatedTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeServerEventConversationItemTruncatedType Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeServerEventConversationItemTruncatedTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeServerEventConversationItemTruncatedType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeServerEventConversationItemTruncatedType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.RealtimeServerEventConversationItemTruncatedTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventConversationItemTruncatedTypeNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventConversationItemTruncatedTypeNullable.g.cs
new file mode 100644
index 00000000..59098a08
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventConversationItemTruncatedTypeNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeServerEventConversationItemTruncatedTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeServerEventConversationItemTruncatedType? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeServerEventConversationItemTruncatedTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeServerEventConversationItemTruncatedType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeServerEventConversationItemTruncatedType? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.RealtimeServerEventConversationItemTruncatedTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventErrorType.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventErrorType.g.cs
new file mode 100644
index 00000000..56c4b9a3
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventErrorType.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeServerEventErrorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeServerEventErrorType Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeServerEventErrorTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeServerEventErrorType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeServerEventErrorType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.RealtimeServerEventErrorTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventErrorTypeNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventErrorTypeNullable.g.cs
new file mode 100644
index 00000000..6b746343
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventErrorTypeNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeServerEventErrorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeServerEventErrorType? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeServerEventErrorTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeServerEventErrorType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeServerEventErrorType? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.RealtimeServerEventErrorTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventInputAudioBufferClearedType.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventInputAudioBufferClearedType.g.cs
new file mode 100644
index 00000000..2139eed9
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventInputAudioBufferClearedType.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeServerEventInputAudioBufferClearedTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeServerEventInputAudioBufferClearedType Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeServerEventInputAudioBufferClearedTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeServerEventInputAudioBufferClearedType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeServerEventInputAudioBufferClearedType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.RealtimeServerEventInputAudioBufferClearedTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventInputAudioBufferClearedTypeNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventInputAudioBufferClearedTypeNullable.g.cs
new file mode 100644
index 00000000..c0d138b7
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventInputAudioBufferClearedTypeNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeServerEventInputAudioBufferClearedTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeServerEventInputAudioBufferClearedType? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeServerEventInputAudioBufferClearedTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeServerEventInputAudioBufferClearedType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeServerEventInputAudioBufferClearedType? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.RealtimeServerEventInputAudioBufferClearedTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventInputAudioBufferCommittedType.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventInputAudioBufferCommittedType.g.cs
new file mode 100644
index 00000000..f0d7985e
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventInputAudioBufferCommittedType.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeServerEventInputAudioBufferCommittedTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeServerEventInputAudioBufferCommittedType Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeServerEventInputAudioBufferCommittedTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeServerEventInputAudioBufferCommittedType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeServerEventInputAudioBufferCommittedType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.RealtimeServerEventInputAudioBufferCommittedTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventInputAudioBufferCommittedTypeNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventInputAudioBufferCommittedTypeNullable.g.cs
new file mode 100644
index 00000000..8f63da7b
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventInputAudioBufferCommittedTypeNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeServerEventInputAudioBufferCommittedTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeServerEventInputAudioBufferCommittedType? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeServerEventInputAudioBufferCommittedTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeServerEventInputAudioBufferCommittedType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeServerEventInputAudioBufferCommittedType? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.RealtimeServerEventInputAudioBufferCommittedTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventInputAudioBufferSpeechStartedType.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventInputAudioBufferSpeechStartedType.g.cs
new file mode 100644
index 00000000..838d8f2f
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventInputAudioBufferSpeechStartedType.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeServerEventInputAudioBufferSpeechStartedTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeServerEventInputAudioBufferSpeechStartedType Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeServerEventInputAudioBufferSpeechStartedTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeServerEventInputAudioBufferSpeechStartedType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeServerEventInputAudioBufferSpeechStartedType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.RealtimeServerEventInputAudioBufferSpeechStartedTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventInputAudioBufferSpeechStartedTypeNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventInputAudioBufferSpeechStartedTypeNullable.g.cs
new file mode 100644
index 00000000..917e92a0
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventInputAudioBufferSpeechStartedTypeNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeServerEventInputAudioBufferSpeechStartedTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeServerEventInputAudioBufferSpeechStartedType? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeServerEventInputAudioBufferSpeechStartedTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeServerEventInputAudioBufferSpeechStartedType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeServerEventInputAudioBufferSpeechStartedType? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.RealtimeServerEventInputAudioBufferSpeechStartedTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventInputAudioBufferSpeechStoppedType.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventInputAudioBufferSpeechStoppedType.g.cs
new file mode 100644
index 00000000..ac6686a3
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventInputAudioBufferSpeechStoppedType.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeServerEventInputAudioBufferSpeechStoppedTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeServerEventInputAudioBufferSpeechStoppedType Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeServerEventInputAudioBufferSpeechStoppedTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeServerEventInputAudioBufferSpeechStoppedType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeServerEventInputAudioBufferSpeechStoppedType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.RealtimeServerEventInputAudioBufferSpeechStoppedTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventInputAudioBufferSpeechStoppedTypeNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventInputAudioBufferSpeechStoppedTypeNullable.g.cs
new file mode 100644
index 00000000..edce61b6
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventInputAudioBufferSpeechStoppedTypeNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeServerEventInputAudioBufferSpeechStoppedTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeServerEventInputAudioBufferSpeechStoppedType? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeServerEventInputAudioBufferSpeechStoppedTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeServerEventInputAudioBufferSpeechStoppedType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeServerEventInputAudioBufferSpeechStoppedType? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.RealtimeServerEventInputAudioBufferSpeechStoppedTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventRateLimitsUpdatedType.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventRateLimitsUpdatedType.g.cs
new file mode 100644
index 00000000..fbf6c432
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventRateLimitsUpdatedType.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeServerEventRateLimitsUpdatedTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeServerEventRateLimitsUpdatedType Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeServerEventRateLimitsUpdatedTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeServerEventRateLimitsUpdatedType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeServerEventRateLimitsUpdatedType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.RealtimeServerEventRateLimitsUpdatedTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventRateLimitsUpdatedTypeNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventRateLimitsUpdatedTypeNullable.g.cs
new file mode 100644
index 00000000..0c47454b
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventRateLimitsUpdatedTypeNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeServerEventRateLimitsUpdatedTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeServerEventRateLimitsUpdatedType? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeServerEventRateLimitsUpdatedTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeServerEventRateLimitsUpdatedType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeServerEventRateLimitsUpdatedType? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.RealtimeServerEventRateLimitsUpdatedTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseAudioDeltaType.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseAudioDeltaType.g.cs
new file mode 100644
index 00000000..a9009378
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseAudioDeltaType.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeServerEventResponseAudioDeltaTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeServerEventResponseAudioDeltaType Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeServerEventResponseAudioDeltaTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeServerEventResponseAudioDeltaType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeServerEventResponseAudioDeltaType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.RealtimeServerEventResponseAudioDeltaTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseAudioDeltaTypeNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseAudioDeltaTypeNullable.g.cs
new file mode 100644
index 00000000..7ed5f647
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseAudioDeltaTypeNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeServerEventResponseAudioDeltaTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeServerEventResponseAudioDeltaType? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeServerEventResponseAudioDeltaTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeServerEventResponseAudioDeltaType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeServerEventResponseAudioDeltaType? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.RealtimeServerEventResponseAudioDeltaTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseAudioDoneType.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseAudioDoneType.g.cs
new file mode 100644
index 00000000..238b5a62
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseAudioDoneType.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeServerEventResponseAudioDoneTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeServerEventResponseAudioDoneType Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeServerEventResponseAudioDoneTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeServerEventResponseAudioDoneType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeServerEventResponseAudioDoneType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.RealtimeServerEventResponseAudioDoneTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseAudioDoneTypeNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseAudioDoneTypeNullable.g.cs
new file mode 100644
index 00000000..87071a5a
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseAudioDoneTypeNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeServerEventResponseAudioDoneTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeServerEventResponseAudioDoneType? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeServerEventResponseAudioDoneTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeServerEventResponseAudioDoneType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeServerEventResponseAudioDoneType? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.RealtimeServerEventResponseAudioDoneTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseAudioTranscriptDeltaType.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseAudioTranscriptDeltaType.g.cs
new file mode 100644
index 00000000..df371d8c
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseAudioTranscriptDeltaType.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeServerEventResponseAudioTranscriptDeltaTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeServerEventResponseAudioTranscriptDeltaType Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeServerEventResponseAudioTranscriptDeltaTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeServerEventResponseAudioTranscriptDeltaType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeServerEventResponseAudioTranscriptDeltaType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.RealtimeServerEventResponseAudioTranscriptDeltaTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseAudioTranscriptDeltaTypeNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseAudioTranscriptDeltaTypeNullable.g.cs
new file mode 100644
index 00000000..73920b6b
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseAudioTranscriptDeltaTypeNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeServerEventResponseAudioTranscriptDeltaTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeServerEventResponseAudioTranscriptDeltaType? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeServerEventResponseAudioTranscriptDeltaTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeServerEventResponseAudioTranscriptDeltaType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeServerEventResponseAudioTranscriptDeltaType? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.RealtimeServerEventResponseAudioTranscriptDeltaTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseAudioTranscriptDoneType.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseAudioTranscriptDoneType.g.cs
new file mode 100644
index 00000000..ce9c2b9a
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseAudioTranscriptDoneType.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeServerEventResponseAudioTranscriptDoneTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeServerEventResponseAudioTranscriptDoneType Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeServerEventResponseAudioTranscriptDoneTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeServerEventResponseAudioTranscriptDoneType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeServerEventResponseAudioTranscriptDoneType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.RealtimeServerEventResponseAudioTranscriptDoneTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseAudioTranscriptDoneTypeNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseAudioTranscriptDoneTypeNullable.g.cs
new file mode 100644
index 00000000..625a0e68
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseAudioTranscriptDoneTypeNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeServerEventResponseAudioTranscriptDoneTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeServerEventResponseAudioTranscriptDoneType? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeServerEventResponseAudioTranscriptDoneTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeServerEventResponseAudioTranscriptDoneType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeServerEventResponseAudioTranscriptDoneType? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.RealtimeServerEventResponseAudioTranscriptDoneTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseContentPartAddedPartType.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseContentPartAddedPartType.g.cs
new file mode 100644
index 00000000..ae66f8aa
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseContentPartAddedPartType.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeServerEventResponseContentPartAddedPartTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeServerEventResponseContentPartAddedPartType Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeServerEventResponseContentPartAddedPartTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeServerEventResponseContentPartAddedPartType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeServerEventResponseContentPartAddedPartType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.RealtimeServerEventResponseContentPartAddedPartTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseContentPartAddedPartTypeNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseContentPartAddedPartTypeNullable.g.cs
new file mode 100644
index 00000000..c5868cdb
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseContentPartAddedPartTypeNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeServerEventResponseContentPartAddedPartTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeServerEventResponseContentPartAddedPartType? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeServerEventResponseContentPartAddedPartTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeServerEventResponseContentPartAddedPartType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeServerEventResponseContentPartAddedPartType? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.RealtimeServerEventResponseContentPartAddedPartTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseContentPartAddedType.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseContentPartAddedType.g.cs
new file mode 100644
index 00000000..0f1c3a95
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseContentPartAddedType.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeServerEventResponseContentPartAddedTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeServerEventResponseContentPartAddedType Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeServerEventResponseContentPartAddedTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeServerEventResponseContentPartAddedType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeServerEventResponseContentPartAddedType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.RealtimeServerEventResponseContentPartAddedTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseContentPartAddedTypeNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseContentPartAddedTypeNullable.g.cs
new file mode 100644
index 00000000..a0a45b7d
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseContentPartAddedTypeNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeServerEventResponseContentPartAddedTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeServerEventResponseContentPartAddedType? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeServerEventResponseContentPartAddedTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeServerEventResponseContentPartAddedType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeServerEventResponseContentPartAddedType? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.RealtimeServerEventResponseContentPartAddedTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseContentPartDoneType.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseContentPartDoneType.g.cs
new file mode 100644
index 00000000..a25f89a1
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseContentPartDoneType.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeServerEventResponseContentPartDoneTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeServerEventResponseContentPartDoneType Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeServerEventResponseContentPartDoneTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeServerEventResponseContentPartDoneType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeServerEventResponseContentPartDoneType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.RealtimeServerEventResponseContentPartDoneTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseContentPartDoneTypeNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseContentPartDoneTypeNullable.g.cs
new file mode 100644
index 00000000..36c2c906
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseContentPartDoneTypeNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeServerEventResponseContentPartDoneTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeServerEventResponseContentPartDoneType? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeServerEventResponseContentPartDoneTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeServerEventResponseContentPartDoneType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeServerEventResponseContentPartDoneType? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.RealtimeServerEventResponseContentPartDoneTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseCreatedType.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseCreatedType.g.cs
new file mode 100644
index 00000000..8bb2612b
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseCreatedType.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeServerEventResponseCreatedTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeServerEventResponseCreatedType Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeServerEventResponseCreatedTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeServerEventResponseCreatedType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeServerEventResponseCreatedType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.RealtimeServerEventResponseCreatedTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseCreatedTypeNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseCreatedTypeNullable.g.cs
new file mode 100644
index 00000000..550b4ce3
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseCreatedTypeNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeServerEventResponseCreatedTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeServerEventResponseCreatedType? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeServerEventResponseCreatedTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeServerEventResponseCreatedType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeServerEventResponseCreatedType? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.RealtimeServerEventResponseCreatedTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseDoneType.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseDoneType.g.cs
new file mode 100644
index 00000000..9fad2583
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseDoneType.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeServerEventResponseDoneTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeServerEventResponseDoneType Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeServerEventResponseDoneTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeServerEventResponseDoneType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeServerEventResponseDoneType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.RealtimeServerEventResponseDoneTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseDoneTypeNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseDoneTypeNullable.g.cs
new file mode 100644
index 00000000..e5a664ef
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseDoneTypeNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeServerEventResponseDoneTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeServerEventResponseDoneType? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeServerEventResponseDoneTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeServerEventResponseDoneType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeServerEventResponseDoneType? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.RealtimeServerEventResponseDoneTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseFunctionCallArgumentsDeltaType.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseFunctionCallArgumentsDeltaType.g.cs
new file mode 100644
index 00000000..95d5a047
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseFunctionCallArgumentsDeltaType.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeServerEventResponseFunctionCallArgumentsDeltaTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDeltaType Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDeltaTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDeltaType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDeltaType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDeltaTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseFunctionCallArgumentsDeltaTypeNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseFunctionCallArgumentsDeltaTypeNullable.g.cs
new file mode 100644
index 00000000..bdfe5ef9
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseFunctionCallArgumentsDeltaTypeNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeServerEventResponseFunctionCallArgumentsDeltaTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDeltaType? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDeltaTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDeltaType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDeltaType? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDeltaTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseFunctionCallArgumentsDoneType.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseFunctionCallArgumentsDoneType.g.cs
new file mode 100644
index 00000000..36d2cf68
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseFunctionCallArgumentsDoneType.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeServerEventResponseFunctionCallArgumentsDoneTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDoneType Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDoneTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDoneType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDoneType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDoneTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseFunctionCallArgumentsDoneTypeNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseFunctionCallArgumentsDoneTypeNullable.g.cs
new file mode 100644
index 00000000..242945d5
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseFunctionCallArgumentsDoneTypeNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeServerEventResponseFunctionCallArgumentsDoneTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDoneType? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDoneTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDoneType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDoneType? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDoneTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseOutputItemAddedType.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseOutputItemAddedType.g.cs
new file mode 100644
index 00000000..38639fe9
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseOutputItemAddedType.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeServerEventResponseOutputItemAddedTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeServerEventResponseOutputItemAddedType Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeServerEventResponseOutputItemAddedTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeServerEventResponseOutputItemAddedType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeServerEventResponseOutputItemAddedType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.RealtimeServerEventResponseOutputItemAddedTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseOutputItemAddedTypeNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseOutputItemAddedTypeNullable.g.cs
new file mode 100644
index 00000000..a4f0806c
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseOutputItemAddedTypeNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeServerEventResponseOutputItemAddedTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeServerEventResponseOutputItemAddedType? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeServerEventResponseOutputItemAddedTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeServerEventResponseOutputItemAddedType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeServerEventResponseOutputItemAddedType? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.RealtimeServerEventResponseOutputItemAddedTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseOutputItemDoneType.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseOutputItemDoneType.g.cs
new file mode 100644
index 00000000..76fb30cb
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseOutputItemDoneType.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeServerEventResponseOutputItemDoneTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeServerEventResponseOutputItemDoneType Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeServerEventResponseOutputItemDoneTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeServerEventResponseOutputItemDoneType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeServerEventResponseOutputItemDoneType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.RealtimeServerEventResponseOutputItemDoneTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseOutputItemDoneTypeNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseOutputItemDoneTypeNullable.g.cs
new file mode 100644
index 00000000..d5a20a16
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseOutputItemDoneTypeNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeServerEventResponseOutputItemDoneTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeServerEventResponseOutputItemDoneType? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeServerEventResponseOutputItemDoneTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeServerEventResponseOutputItemDoneType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeServerEventResponseOutputItemDoneType? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.RealtimeServerEventResponseOutputItemDoneTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseTextDeltaType.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseTextDeltaType.g.cs
new file mode 100644
index 00000000..384d0ac2
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseTextDeltaType.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeServerEventResponseTextDeltaTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeServerEventResponseTextDeltaType Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeServerEventResponseTextDeltaTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeServerEventResponseTextDeltaType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeServerEventResponseTextDeltaType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.RealtimeServerEventResponseTextDeltaTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseTextDeltaTypeNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseTextDeltaTypeNullable.g.cs
new file mode 100644
index 00000000..45151d68
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseTextDeltaTypeNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeServerEventResponseTextDeltaTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeServerEventResponseTextDeltaType? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeServerEventResponseTextDeltaTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeServerEventResponseTextDeltaType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeServerEventResponseTextDeltaType? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.RealtimeServerEventResponseTextDeltaTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseTextDoneType.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseTextDoneType.g.cs
new file mode 100644
index 00000000..4294f954
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseTextDoneType.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeServerEventResponseTextDoneTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeServerEventResponseTextDoneType Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeServerEventResponseTextDoneTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeServerEventResponseTextDoneType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeServerEventResponseTextDoneType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.RealtimeServerEventResponseTextDoneTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseTextDoneTypeNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseTextDoneTypeNullable.g.cs
new file mode 100644
index 00000000..5e2f81b5
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventResponseTextDoneTypeNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeServerEventResponseTextDoneTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeServerEventResponseTextDoneType? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeServerEventResponseTextDoneTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeServerEventResponseTextDoneType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeServerEventResponseTextDoneType? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.RealtimeServerEventResponseTextDoneTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventSessionCreatedType.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventSessionCreatedType.g.cs
new file mode 100644
index 00000000..5cbda860
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventSessionCreatedType.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeServerEventSessionCreatedTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeServerEventSessionCreatedType Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeServerEventSessionCreatedTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeServerEventSessionCreatedType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeServerEventSessionCreatedType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.RealtimeServerEventSessionCreatedTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventSessionCreatedTypeNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventSessionCreatedTypeNullable.g.cs
new file mode 100644
index 00000000..36db31bf
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventSessionCreatedTypeNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeServerEventSessionCreatedTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeServerEventSessionCreatedType? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeServerEventSessionCreatedTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeServerEventSessionCreatedType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeServerEventSessionCreatedType? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.RealtimeServerEventSessionCreatedTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventSessionUpdatedType.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventSessionUpdatedType.g.cs
new file mode 100644
index 00000000..bd2d43a8
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventSessionUpdatedType.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeServerEventSessionUpdatedTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeServerEventSessionUpdatedType Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeServerEventSessionUpdatedTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeServerEventSessionUpdatedType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeServerEventSessionUpdatedType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.RealtimeServerEventSessionUpdatedTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventSessionUpdatedTypeNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventSessionUpdatedTypeNullable.g.cs
new file mode 100644
index 00000000..31fb355d
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.RealtimeServerEventSessionUpdatedTypeNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class RealtimeServerEventSessionUpdatedTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.RealtimeServerEventSessionUpdatedType? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.RealtimeServerEventSessionUpdatedTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.RealtimeServerEventSessionUpdatedType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.RealtimeServerEventSessionUpdatedType? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.RealtimeServerEventSessionUpdatedTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.ResultItem.g.cs b/src/libs/OpenAI/Generated/JsonConverters.ResultItem.g.cs
new file mode 100644
index 00000000..125276ae
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.ResultItem.g.cs
@@ -0,0 +1,169 @@
+#nullable enable
+#pragma warning disable CS0618 // Type or member is obsolete
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public class ResultItemJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.ResultItem Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ options = options ?? throw new global::System.ArgumentNullException(nameof(options));
+ var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
+
+
+ var readerCopy = reader;
+ var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.UsageTimeBucketResultItemDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.UsageTimeBucketResultItemDiscriminator)}");
+ var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo);
+
+ global::OpenAI.UsageCompletionsResult? organizationUsageCompletionsResult = default;
+ if (discriminator?.Object == global::OpenAI.UsageTimeBucketResultItemDiscriminatorObject.OrganizationUsageCompletionsResult)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.UsageCompletionsResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.UsageCompletionsResult)}");
+ organizationUsageCompletionsResult = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ }
+ global::OpenAI.UsageEmbeddingsResult? organizationUsageEmbeddingsResult = default;
+ if (discriminator?.Object == global::OpenAI.UsageTimeBucketResultItemDiscriminatorObject.OrganizationUsageEmbeddingsResult)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.UsageEmbeddingsResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.UsageEmbeddingsResult)}");
+ organizationUsageEmbeddingsResult = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ }
+ global::OpenAI.UsageModerationsResult? organizationUsageModerationsResult = default;
+ if (discriminator?.Object == global::OpenAI.UsageTimeBucketResultItemDiscriminatorObject.OrganizationUsageModerationsResult)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.UsageModerationsResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.UsageModerationsResult)}");
+ organizationUsageModerationsResult = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ }
+ global::OpenAI.UsageImagesResult? organizationUsageImagesResult = default;
+ if (discriminator?.Object == global::OpenAI.UsageTimeBucketResultItemDiscriminatorObject.OrganizationUsageImagesResult)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.UsageImagesResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.UsageImagesResult)}");
+ organizationUsageImagesResult = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ }
+ global::OpenAI.UsageAudioSpeechesResult? organizationUsageAudioSpeechesResult = default;
+ if (discriminator?.Object == global::OpenAI.UsageTimeBucketResultItemDiscriminatorObject.OrganizationUsageAudioSpeechesResult)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.UsageAudioSpeechesResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.UsageAudioSpeechesResult)}");
+ organizationUsageAudioSpeechesResult = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ }
+ global::OpenAI.UsageAudioTranscriptionsResult? organizationUsageAudioTranscriptionsResult = default;
+ if (discriminator?.Object == global::OpenAI.UsageTimeBucketResultItemDiscriminatorObject.OrganizationUsageAudioTranscriptionsResult)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.UsageAudioTranscriptionsResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.UsageAudioTranscriptionsResult)}");
+ organizationUsageAudioTranscriptionsResult = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ }
+ global::OpenAI.UsageVectorStoresResult? organizationUsageVectorStoresResult = default;
+ if (discriminator?.Object == global::OpenAI.UsageTimeBucketResultItemDiscriminatorObject.OrganizationUsageVectorStoresResult)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.UsageVectorStoresResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.UsageVectorStoresResult)}");
+ organizationUsageVectorStoresResult = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ }
+ global::OpenAI.UsageCodeInterpreterSessionsResult? organizationUsageCodeInterpreterSessionsResult = default;
+ if (discriminator?.Object == global::OpenAI.UsageTimeBucketResultItemDiscriminatorObject.OrganizationUsageCodeInterpreterSessionsResult)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.UsageCodeInterpreterSessionsResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.UsageCodeInterpreterSessionsResult)}");
+ organizationUsageCodeInterpreterSessionsResult = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ }
+ global::OpenAI.CostsResult? organizationCostsResult = default;
+ if (discriminator?.Object == global::OpenAI.UsageTimeBucketResultItemDiscriminatorObject.OrganizationCostsResult)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.CostsResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.CostsResult)}");
+ organizationCostsResult = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ }
+
+ var result = new global::OpenAI.ResultItem(
+ discriminator?.Object,
+ organizationUsageCompletionsResult,
+ organizationUsageEmbeddingsResult,
+ organizationUsageModerationsResult,
+ organizationUsageImagesResult,
+ organizationUsageAudioSpeechesResult,
+ organizationUsageAudioTranscriptionsResult,
+ organizationUsageVectorStoresResult,
+ organizationUsageCodeInterpreterSessionsResult,
+ organizationCostsResult
+ );
+
+ return result;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.ResultItem value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ options = options ?? throw new global::System.ArgumentNullException(nameof(options));
+ var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
+
+ if (value.IsOrganizationUsageCompletionsResult)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.UsageCompletionsResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.UsageCompletionsResult).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.OrganizationUsageCompletionsResult, typeInfo);
+ }
+ else if (value.IsOrganizationUsageEmbeddingsResult)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.UsageEmbeddingsResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.UsageEmbeddingsResult).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.OrganizationUsageEmbeddingsResult, typeInfo);
+ }
+ else if (value.IsOrganizationUsageModerationsResult)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.UsageModerationsResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.UsageModerationsResult).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.OrganizationUsageModerationsResult, typeInfo);
+ }
+ else if (value.IsOrganizationUsageImagesResult)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.UsageImagesResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.UsageImagesResult).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.OrganizationUsageImagesResult, typeInfo);
+ }
+ else if (value.IsOrganizationUsageAudioSpeechesResult)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.UsageAudioSpeechesResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.UsageAudioSpeechesResult).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.OrganizationUsageAudioSpeechesResult, typeInfo);
+ }
+ else if (value.IsOrganizationUsageAudioTranscriptionsResult)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.UsageAudioTranscriptionsResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.UsageAudioTranscriptionsResult).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.OrganizationUsageAudioTranscriptionsResult, typeInfo);
+ }
+ else if (value.IsOrganizationUsageVectorStoresResult)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.UsageVectorStoresResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.UsageVectorStoresResult).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.OrganizationUsageVectorStoresResult, typeInfo);
+ }
+ else if (value.IsOrganizationUsageCodeInterpreterSessionsResult)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.UsageCodeInterpreterSessionsResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.UsageCodeInterpreterSessionsResult).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.OrganizationUsageCodeInterpreterSessionsResult, typeInfo);
+ }
+ else if (value.IsOrganizationCostsResult)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.CostsResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.CostsResult).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.OrganizationCostsResult, typeInfo);
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/OpenAI/Generated/JsonConverters.UsageAudioSpeechesBucketWidth.g.cs b/src/libs/OpenAI/Generated/JsonConverters.UsageAudioSpeechesBucketWidth.g.cs
new file mode 100644
index 00000000..172139cd
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.UsageAudioSpeechesBucketWidth.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class UsageAudioSpeechesBucketWidthJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.UsageAudioSpeechesBucketWidth Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.UsageAudioSpeechesBucketWidthExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.UsageAudioSpeechesBucketWidth)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.UsageAudioSpeechesBucketWidth value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.UsageAudioSpeechesBucketWidthExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.UsageAudioSpeechesBucketWidthNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.UsageAudioSpeechesBucketWidthNullable.g.cs
new file mode 100644
index 00000000..bc2866e7
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.UsageAudioSpeechesBucketWidthNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class UsageAudioSpeechesBucketWidthNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.UsageAudioSpeechesBucketWidth? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.UsageAudioSpeechesBucketWidthExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.UsageAudioSpeechesBucketWidth)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.UsageAudioSpeechesBucketWidth? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.UsageAudioSpeechesBucketWidthExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.UsageAudioSpeechesGroupByItem.g.cs b/src/libs/OpenAI/Generated/JsonConverters.UsageAudioSpeechesGroupByItem.g.cs
new file mode 100644
index 00000000..37a409a6
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.UsageAudioSpeechesGroupByItem.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class UsageAudioSpeechesGroupByItemJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.UsageAudioSpeechesGroupByItem Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.UsageAudioSpeechesGroupByItemExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.UsageAudioSpeechesGroupByItem)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.UsageAudioSpeechesGroupByItem value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.UsageAudioSpeechesGroupByItemExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.UsageAudioSpeechesGroupByItemNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.UsageAudioSpeechesGroupByItemNullable.g.cs
new file mode 100644
index 00000000..5149cfa3
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.UsageAudioSpeechesGroupByItemNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class UsageAudioSpeechesGroupByItemNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.UsageAudioSpeechesGroupByItem? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.UsageAudioSpeechesGroupByItemExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.UsageAudioSpeechesGroupByItem)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.UsageAudioSpeechesGroupByItem? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.UsageAudioSpeechesGroupByItemExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.UsageAudioSpeechesResultObject.g.cs b/src/libs/OpenAI/Generated/JsonConverters.UsageAudioSpeechesResultObject.g.cs
new file mode 100644
index 00000000..23abebc4
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.UsageAudioSpeechesResultObject.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class UsageAudioSpeechesResultObjectJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.UsageAudioSpeechesResultObject Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.UsageAudioSpeechesResultObjectExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.UsageAudioSpeechesResultObject)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.UsageAudioSpeechesResultObject value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.UsageAudioSpeechesResultObjectExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.UsageAudioSpeechesResultObjectNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.UsageAudioSpeechesResultObjectNullable.g.cs
new file mode 100644
index 00000000..efc6b634
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.UsageAudioSpeechesResultObjectNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class UsageAudioSpeechesResultObjectNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.UsageAudioSpeechesResultObject? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.UsageAudioSpeechesResultObjectExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.UsageAudioSpeechesResultObject)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.UsageAudioSpeechesResultObject? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.UsageAudioSpeechesResultObjectExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.UsageAudioTranscriptionsBucketWidth.g.cs b/src/libs/OpenAI/Generated/JsonConverters.UsageAudioTranscriptionsBucketWidth.g.cs
new file mode 100644
index 00000000..a4c86ca4
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.UsageAudioTranscriptionsBucketWidth.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class UsageAudioTranscriptionsBucketWidthJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.UsageAudioTranscriptionsBucketWidth Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.UsageAudioTranscriptionsBucketWidthExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.UsageAudioTranscriptionsBucketWidth)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.UsageAudioTranscriptionsBucketWidth value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.UsageAudioTranscriptionsBucketWidthExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.UsageAudioTranscriptionsBucketWidthNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.UsageAudioTranscriptionsBucketWidthNullable.g.cs
new file mode 100644
index 00000000..0ef6c62a
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.UsageAudioTranscriptionsBucketWidthNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class UsageAudioTranscriptionsBucketWidthNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.UsageAudioTranscriptionsBucketWidth? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.UsageAudioTranscriptionsBucketWidthExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.UsageAudioTranscriptionsBucketWidth)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.UsageAudioTranscriptionsBucketWidth? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.UsageAudioTranscriptionsBucketWidthExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.UsageAudioTranscriptionsGroupByItem.g.cs b/src/libs/OpenAI/Generated/JsonConverters.UsageAudioTranscriptionsGroupByItem.g.cs
new file mode 100644
index 00000000..1bade61b
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.UsageAudioTranscriptionsGroupByItem.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class UsageAudioTranscriptionsGroupByItemJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.UsageAudioTranscriptionsGroupByItem Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.UsageAudioTranscriptionsGroupByItemExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.UsageAudioTranscriptionsGroupByItem)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.UsageAudioTranscriptionsGroupByItem value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.UsageAudioTranscriptionsGroupByItemExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.UsageAudioTranscriptionsGroupByItemNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.UsageAudioTranscriptionsGroupByItemNullable.g.cs
new file mode 100644
index 00000000..b3cb9e85
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.UsageAudioTranscriptionsGroupByItemNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class UsageAudioTranscriptionsGroupByItemNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.UsageAudioTranscriptionsGroupByItem? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.UsageAudioTranscriptionsGroupByItemExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.UsageAudioTranscriptionsGroupByItem)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.UsageAudioTranscriptionsGroupByItem? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.UsageAudioTranscriptionsGroupByItemExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.UsageAudioTranscriptionsResultObject.g.cs b/src/libs/OpenAI/Generated/JsonConverters.UsageAudioTranscriptionsResultObject.g.cs
new file mode 100644
index 00000000..e5cba1d7
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.UsageAudioTranscriptionsResultObject.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class UsageAudioTranscriptionsResultObjectJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.UsageAudioTranscriptionsResultObject Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.UsageAudioTranscriptionsResultObjectExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.UsageAudioTranscriptionsResultObject)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.UsageAudioTranscriptionsResultObject value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.UsageAudioTranscriptionsResultObjectExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.UsageAudioTranscriptionsResultObjectNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.UsageAudioTranscriptionsResultObjectNullable.g.cs
new file mode 100644
index 00000000..e9b9ee6e
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.UsageAudioTranscriptionsResultObjectNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class UsageAudioTranscriptionsResultObjectNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.UsageAudioTranscriptionsResultObject? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.UsageAudioTranscriptionsResultObjectExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.UsageAudioTranscriptionsResultObject)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.UsageAudioTranscriptionsResultObject? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.UsageAudioTranscriptionsResultObjectExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.UsageCodeInterpreterSessionsBucketWidth.g.cs b/src/libs/OpenAI/Generated/JsonConverters.UsageCodeInterpreterSessionsBucketWidth.g.cs
new file mode 100644
index 00000000..4623d922
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.UsageCodeInterpreterSessionsBucketWidth.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class UsageCodeInterpreterSessionsBucketWidthJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.UsageCodeInterpreterSessionsBucketWidth Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.UsageCodeInterpreterSessionsBucketWidthExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.UsageCodeInterpreterSessionsBucketWidth)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.UsageCodeInterpreterSessionsBucketWidth value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.UsageCodeInterpreterSessionsBucketWidthExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.UsageCodeInterpreterSessionsBucketWidthNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.UsageCodeInterpreterSessionsBucketWidthNullable.g.cs
new file mode 100644
index 00000000..0019eeea
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.UsageCodeInterpreterSessionsBucketWidthNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class UsageCodeInterpreterSessionsBucketWidthNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.UsageCodeInterpreterSessionsBucketWidth? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.UsageCodeInterpreterSessionsBucketWidthExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.UsageCodeInterpreterSessionsBucketWidth)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.UsageCodeInterpreterSessionsBucketWidth? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.UsageCodeInterpreterSessionsBucketWidthExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.UsageCodeInterpreterSessionsGroupByItem.g.cs b/src/libs/OpenAI/Generated/JsonConverters.UsageCodeInterpreterSessionsGroupByItem.g.cs
new file mode 100644
index 00000000..1de488ca
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.UsageCodeInterpreterSessionsGroupByItem.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class UsageCodeInterpreterSessionsGroupByItemJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.UsageCodeInterpreterSessionsGroupByItem Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.UsageCodeInterpreterSessionsGroupByItemExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.UsageCodeInterpreterSessionsGroupByItem)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.UsageCodeInterpreterSessionsGroupByItem value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.UsageCodeInterpreterSessionsGroupByItemExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.UsageCodeInterpreterSessionsGroupByItemNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.UsageCodeInterpreterSessionsGroupByItemNullable.g.cs
new file mode 100644
index 00000000..6704711e
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.UsageCodeInterpreterSessionsGroupByItemNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class UsageCodeInterpreterSessionsGroupByItemNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.UsageCodeInterpreterSessionsGroupByItem? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.UsageCodeInterpreterSessionsGroupByItemExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.UsageCodeInterpreterSessionsGroupByItem)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.UsageCodeInterpreterSessionsGroupByItem? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.UsageCodeInterpreterSessionsGroupByItemExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.UsageCodeInterpreterSessionsResultObject.g.cs b/src/libs/OpenAI/Generated/JsonConverters.UsageCodeInterpreterSessionsResultObject.g.cs
new file mode 100644
index 00000000..5ba35e61
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.UsageCodeInterpreterSessionsResultObject.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class UsageCodeInterpreterSessionsResultObjectJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.UsageCodeInterpreterSessionsResultObject Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.UsageCodeInterpreterSessionsResultObjectExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.UsageCodeInterpreterSessionsResultObject)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.UsageCodeInterpreterSessionsResultObject value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.UsageCodeInterpreterSessionsResultObjectExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.UsageCodeInterpreterSessionsResultObjectNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.UsageCodeInterpreterSessionsResultObjectNullable.g.cs
new file mode 100644
index 00000000..2ffacd0c
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.UsageCodeInterpreterSessionsResultObjectNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class UsageCodeInterpreterSessionsResultObjectNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.UsageCodeInterpreterSessionsResultObject? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.UsageCodeInterpreterSessionsResultObjectExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.UsageCodeInterpreterSessionsResultObject)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.UsageCodeInterpreterSessionsResultObject? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.UsageCodeInterpreterSessionsResultObjectExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.UsageCompletionsBucketWidth.g.cs b/src/libs/OpenAI/Generated/JsonConverters.UsageCompletionsBucketWidth.g.cs
new file mode 100644
index 00000000..f514e894
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.UsageCompletionsBucketWidth.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class UsageCompletionsBucketWidthJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.UsageCompletionsBucketWidth Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.UsageCompletionsBucketWidthExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.UsageCompletionsBucketWidth)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.UsageCompletionsBucketWidth value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.UsageCompletionsBucketWidthExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.UsageCompletionsBucketWidthNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.UsageCompletionsBucketWidthNullable.g.cs
new file mode 100644
index 00000000..f2d82c2d
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.UsageCompletionsBucketWidthNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class UsageCompletionsBucketWidthNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.UsageCompletionsBucketWidth? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.UsageCompletionsBucketWidthExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.UsageCompletionsBucketWidth)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.UsageCompletionsBucketWidth? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.UsageCompletionsBucketWidthExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.UsageCompletionsGroupByItem.g.cs b/src/libs/OpenAI/Generated/JsonConverters.UsageCompletionsGroupByItem.g.cs
new file mode 100644
index 00000000..5611d25c
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.UsageCompletionsGroupByItem.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class UsageCompletionsGroupByItemJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.UsageCompletionsGroupByItem Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.UsageCompletionsGroupByItemExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.UsageCompletionsGroupByItem)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.UsageCompletionsGroupByItem value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.UsageCompletionsGroupByItemExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.UsageCompletionsGroupByItemNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.UsageCompletionsGroupByItemNullable.g.cs
new file mode 100644
index 00000000..272faf56
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.UsageCompletionsGroupByItemNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class UsageCompletionsGroupByItemNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.UsageCompletionsGroupByItem? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.UsageCompletionsGroupByItemExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.UsageCompletionsGroupByItem)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.UsageCompletionsGroupByItem? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.UsageCompletionsGroupByItemExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.UsageCompletionsResultObject.g.cs b/src/libs/OpenAI/Generated/JsonConverters.UsageCompletionsResultObject.g.cs
new file mode 100644
index 00000000..31da8dbf
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.UsageCompletionsResultObject.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class UsageCompletionsResultObjectJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.UsageCompletionsResultObject Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.UsageCompletionsResultObjectExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.UsageCompletionsResultObject)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.UsageCompletionsResultObject value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.UsageCompletionsResultObjectExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.UsageCompletionsResultObjectNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.UsageCompletionsResultObjectNullable.g.cs
new file mode 100644
index 00000000..6080023f
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.UsageCompletionsResultObjectNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class UsageCompletionsResultObjectNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.UsageCompletionsResultObject? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.UsageCompletionsResultObjectExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.UsageCompletionsResultObject)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.UsageCompletionsResultObject? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.UsageCompletionsResultObjectExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.UsageCostsBucketWidth.g.cs b/src/libs/OpenAI/Generated/JsonConverters.UsageCostsBucketWidth.g.cs
new file mode 100644
index 00000000..8a1a8686
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.UsageCostsBucketWidth.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class UsageCostsBucketWidthJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.UsageCostsBucketWidth Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.UsageCostsBucketWidthExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.UsageCostsBucketWidth)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.UsageCostsBucketWidth value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.UsageCostsBucketWidthExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.UsageCostsBucketWidthNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.UsageCostsBucketWidthNullable.g.cs
new file mode 100644
index 00000000..be14ba73
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.UsageCostsBucketWidthNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class UsageCostsBucketWidthNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.UsageCostsBucketWidth? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.UsageCostsBucketWidthExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.UsageCostsBucketWidth)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.UsageCostsBucketWidth? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.UsageCostsBucketWidthExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.UsageCostsGroupByItem.g.cs b/src/libs/OpenAI/Generated/JsonConverters.UsageCostsGroupByItem.g.cs
new file mode 100644
index 00000000..1957d25a
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.UsageCostsGroupByItem.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class UsageCostsGroupByItemJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.UsageCostsGroupByItem Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.UsageCostsGroupByItemExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.UsageCostsGroupByItem)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.UsageCostsGroupByItem value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.UsageCostsGroupByItemExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.UsageCostsGroupByItemNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.UsageCostsGroupByItemNullable.g.cs
new file mode 100644
index 00000000..19d5bccd
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.UsageCostsGroupByItemNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class UsageCostsGroupByItemNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.UsageCostsGroupByItem? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.UsageCostsGroupByItemExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.UsageCostsGroupByItem)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.UsageCostsGroupByItem? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.UsageCostsGroupByItemExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.UsageEmbeddingsBucketWidth.g.cs b/src/libs/OpenAI/Generated/JsonConverters.UsageEmbeddingsBucketWidth.g.cs
new file mode 100644
index 00000000..ce1fedc9
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.UsageEmbeddingsBucketWidth.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class UsageEmbeddingsBucketWidthJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.UsageEmbeddingsBucketWidth Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.UsageEmbeddingsBucketWidthExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.UsageEmbeddingsBucketWidth)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.UsageEmbeddingsBucketWidth value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.UsageEmbeddingsBucketWidthExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.UsageEmbeddingsBucketWidthNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.UsageEmbeddingsBucketWidthNullable.g.cs
new file mode 100644
index 00000000..e8253849
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.UsageEmbeddingsBucketWidthNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class UsageEmbeddingsBucketWidthNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.UsageEmbeddingsBucketWidth? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.UsageEmbeddingsBucketWidthExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.UsageEmbeddingsBucketWidth)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.UsageEmbeddingsBucketWidth? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.UsageEmbeddingsBucketWidthExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.UsageEmbeddingsGroupByItem.g.cs b/src/libs/OpenAI/Generated/JsonConverters.UsageEmbeddingsGroupByItem.g.cs
new file mode 100644
index 00000000..df10b556
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.UsageEmbeddingsGroupByItem.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class UsageEmbeddingsGroupByItemJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.UsageEmbeddingsGroupByItem Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.UsageEmbeddingsGroupByItemExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.UsageEmbeddingsGroupByItem)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.UsageEmbeddingsGroupByItem value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.UsageEmbeddingsGroupByItemExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.UsageEmbeddingsGroupByItemNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.UsageEmbeddingsGroupByItemNullable.g.cs
new file mode 100644
index 00000000..55a172ae
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.UsageEmbeddingsGroupByItemNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class UsageEmbeddingsGroupByItemNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.UsageEmbeddingsGroupByItem? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.UsageEmbeddingsGroupByItemExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.UsageEmbeddingsGroupByItem)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.UsageEmbeddingsGroupByItem? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.UsageEmbeddingsGroupByItemExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.UsageEmbeddingsResultObject.g.cs b/src/libs/OpenAI/Generated/JsonConverters.UsageEmbeddingsResultObject.g.cs
new file mode 100644
index 00000000..1d04774d
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.UsageEmbeddingsResultObject.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class UsageEmbeddingsResultObjectJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.UsageEmbeddingsResultObject Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.UsageEmbeddingsResultObjectExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.UsageEmbeddingsResultObject)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.UsageEmbeddingsResultObject value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.UsageEmbeddingsResultObjectExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.UsageEmbeddingsResultObjectNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.UsageEmbeddingsResultObjectNullable.g.cs
new file mode 100644
index 00000000..bae4db44
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.UsageEmbeddingsResultObjectNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class UsageEmbeddingsResultObjectNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.UsageEmbeddingsResultObject? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.UsageEmbeddingsResultObjectExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.UsageEmbeddingsResultObject)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.UsageEmbeddingsResultObject? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.UsageEmbeddingsResultObjectExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.UsageImagesBucketWidth.g.cs b/src/libs/OpenAI/Generated/JsonConverters.UsageImagesBucketWidth.g.cs
new file mode 100644
index 00000000..e33b6c6d
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.UsageImagesBucketWidth.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class UsageImagesBucketWidthJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.UsageImagesBucketWidth Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.UsageImagesBucketWidthExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.UsageImagesBucketWidth)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.UsageImagesBucketWidth value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.UsageImagesBucketWidthExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.UsageImagesBucketWidthNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.UsageImagesBucketWidthNullable.g.cs
new file mode 100644
index 00000000..ba20378c
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.UsageImagesBucketWidthNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class UsageImagesBucketWidthNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.UsageImagesBucketWidth? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.UsageImagesBucketWidthExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.UsageImagesBucketWidth)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.UsageImagesBucketWidth? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.UsageImagesBucketWidthExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.UsageImagesGroupByItem.g.cs b/src/libs/OpenAI/Generated/JsonConverters.UsageImagesGroupByItem.g.cs
new file mode 100644
index 00000000..099f0ce0
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.UsageImagesGroupByItem.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class UsageImagesGroupByItemJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.UsageImagesGroupByItem Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.UsageImagesGroupByItemExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.UsageImagesGroupByItem)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.UsageImagesGroupByItem value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.UsageImagesGroupByItemExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.UsageImagesGroupByItemNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.UsageImagesGroupByItemNullable.g.cs
new file mode 100644
index 00000000..5367d853
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.UsageImagesGroupByItemNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class UsageImagesGroupByItemNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.UsageImagesGroupByItem? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.UsageImagesGroupByItemExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.UsageImagesGroupByItem)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.UsageImagesGroupByItem? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.UsageImagesGroupByItemExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.UsageImagesResultObject.g.cs b/src/libs/OpenAI/Generated/JsonConverters.UsageImagesResultObject.g.cs
new file mode 100644
index 00000000..d44555a4
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.UsageImagesResultObject.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class UsageImagesResultObjectJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.UsageImagesResultObject Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.UsageImagesResultObjectExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.UsageImagesResultObject)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.UsageImagesResultObject value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.UsageImagesResultObjectExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.UsageImagesResultObjectNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.UsageImagesResultObjectNullable.g.cs
new file mode 100644
index 00000000..71084c10
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.UsageImagesResultObjectNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class UsageImagesResultObjectNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.UsageImagesResultObject? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.UsageImagesResultObjectExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.UsageImagesResultObject)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.UsageImagesResultObject? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.UsageImagesResultObjectExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.UsageImagesSize.g.cs b/src/libs/OpenAI/Generated/JsonConverters.UsageImagesSize.g.cs
new file mode 100644
index 00000000..c939ef95
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.UsageImagesSize.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class UsageImagesSizeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.UsageImagesSize Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.UsageImagesSizeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.UsageImagesSize)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.UsageImagesSize value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.UsageImagesSizeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.UsageImagesSizeNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.UsageImagesSizeNullable.g.cs
new file mode 100644
index 00000000..52b056ab
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.UsageImagesSizeNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class UsageImagesSizeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.UsageImagesSize? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.UsageImagesSizeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.UsageImagesSize)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.UsageImagesSize? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.UsageImagesSizeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.UsageImagesSource.g.cs b/src/libs/OpenAI/Generated/JsonConverters.UsageImagesSource.g.cs
new file mode 100644
index 00000000..c2a8218f
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.UsageImagesSource.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class UsageImagesSourceJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.UsageImagesSource Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.UsageImagesSourceExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.UsageImagesSource)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.UsageImagesSource value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.UsageImagesSourceExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.UsageImagesSourceNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.UsageImagesSourceNullable.g.cs
new file mode 100644
index 00000000..de8f8f9b
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.UsageImagesSourceNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class UsageImagesSourceNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.UsageImagesSource? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.UsageImagesSourceExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.UsageImagesSource)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.UsageImagesSource? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.UsageImagesSourceExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.UsageModerationsBucketWidth.g.cs b/src/libs/OpenAI/Generated/JsonConverters.UsageModerationsBucketWidth.g.cs
new file mode 100644
index 00000000..be117735
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.UsageModerationsBucketWidth.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class UsageModerationsBucketWidthJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.UsageModerationsBucketWidth Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.UsageModerationsBucketWidthExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.UsageModerationsBucketWidth)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.UsageModerationsBucketWidth value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.UsageModerationsBucketWidthExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.UsageModerationsBucketWidthNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.UsageModerationsBucketWidthNullable.g.cs
new file mode 100644
index 00000000..9c20f1eb
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.UsageModerationsBucketWidthNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class UsageModerationsBucketWidthNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.UsageModerationsBucketWidth? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.UsageModerationsBucketWidthExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.UsageModerationsBucketWidth)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.UsageModerationsBucketWidth? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.UsageModerationsBucketWidthExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.UsageModerationsGroupByItem.g.cs b/src/libs/OpenAI/Generated/JsonConverters.UsageModerationsGroupByItem.g.cs
new file mode 100644
index 00000000..67fce680
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.UsageModerationsGroupByItem.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class UsageModerationsGroupByItemJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.UsageModerationsGroupByItem Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.UsageModerationsGroupByItemExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.UsageModerationsGroupByItem)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.UsageModerationsGroupByItem value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.UsageModerationsGroupByItemExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.UsageModerationsGroupByItemNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.UsageModerationsGroupByItemNullable.g.cs
new file mode 100644
index 00000000..77f2951b
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.UsageModerationsGroupByItemNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class UsageModerationsGroupByItemNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.UsageModerationsGroupByItem? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.UsageModerationsGroupByItemExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.UsageModerationsGroupByItem)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.UsageModerationsGroupByItem? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.UsageModerationsGroupByItemExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.UsageModerationsResultObject.g.cs b/src/libs/OpenAI/Generated/JsonConverters.UsageModerationsResultObject.g.cs
new file mode 100644
index 00000000..cde048fa
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.UsageModerationsResultObject.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class UsageModerationsResultObjectJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.UsageModerationsResultObject Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.UsageModerationsResultObjectExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.UsageModerationsResultObject)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.UsageModerationsResultObject value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.UsageModerationsResultObjectExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.UsageModerationsResultObjectNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.UsageModerationsResultObjectNullable.g.cs
new file mode 100644
index 00000000..bd4cd705
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.UsageModerationsResultObjectNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class UsageModerationsResultObjectNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.UsageModerationsResultObject? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.UsageModerationsResultObjectExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.UsageModerationsResultObject)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.UsageModerationsResultObject? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.UsageModerationsResultObjectExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.UsageResponseObject.g.cs b/src/libs/OpenAI/Generated/JsonConverters.UsageResponseObject.g.cs
new file mode 100644
index 00000000..7e6a7ef2
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.UsageResponseObject.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class UsageResponseObjectJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.UsageResponseObject Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.UsageResponseObjectExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.UsageResponseObject)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.UsageResponseObject value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.UsageResponseObjectExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.UsageResponseObjectNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.UsageResponseObjectNullable.g.cs
new file mode 100644
index 00000000..09bf4040
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.UsageResponseObjectNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class UsageResponseObjectNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.UsageResponseObject? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.UsageResponseObjectExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.UsageResponseObject)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.UsageResponseObject? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.UsageResponseObjectExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.UsageTimeBucketObject.g.cs b/src/libs/OpenAI/Generated/JsonConverters.UsageTimeBucketObject.g.cs
new file mode 100644
index 00000000..1b128294
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.UsageTimeBucketObject.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class UsageTimeBucketObjectJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.UsageTimeBucketObject Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.UsageTimeBucketObjectExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.UsageTimeBucketObject)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.UsageTimeBucketObject value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.UsageTimeBucketObjectExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.UsageTimeBucketObjectNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.UsageTimeBucketObjectNullable.g.cs
new file mode 100644
index 00000000..37e0b96a
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.UsageTimeBucketObjectNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class UsageTimeBucketObjectNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.UsageTimeBucketObject? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.UsageTimeBucketObjectExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.UsageTimeBucketObject)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.UsageTimeBucketObject? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.UsageTimeBucketObjectExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.UsageTimeBucketResultItemDiscriminatorObject.g.cs b/src/libs/OpenAI/Generated/JsonConverters.UsageTimeBucketResultItemDiscriminatorObject.g.cs
new file mode 100644
index 00000000..114a45f3
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.UsageTimeBucketResultItemDiscriminatorObject.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class UsageTimeBucketResultItemDiscriminatorObjectJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.UsageTimeBucketResultItemDiscriminatorObject Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.UsageTimeBucketResultItemDiscriminatorObjectExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.UsageTimeBucketResultItemDiscriminatorObject)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.UsageTimeBucketResultItemDiscriminatorObject value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.UsageTimeBucketResultItemDiscriminatorObjectExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.UsageTimeBucketResultItemDiscriminatorObjectNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.UsageTimeBucketResultItemDiscriminatorObjectNullable.g.cs
new file mode 100644
index 00000000..5a72a84f
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.UsageTimeBucketResultItemDiscriminatorObjectNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class UsageTimeBucketResultItemDiscriminatorObjectNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.UsageTimeBucketResultItemDiscriminatorObject? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.UsageTimeBucketResultItemDiscriminatorObjectExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.UsageTimeBucketResultItemDiscriminatorObject)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.UsageTimeBucketResultItemDiscriminatorObject? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.UsageTimeBucketResultItemDiscriminatorObjectExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.UsageVectorStoresBucketWidth.g.cs b/src/libs/OpenAI/Generated/JsonConverters.UsageVectorStoresBucketWidth.g.cs
new file mode 100644
index 00000000..87166a9a
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.UsageVectorStoresBucketWidth.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class UsageVectorStoresBucketWidthJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.UsageVectorStoresBucketWidth Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.UsageVectorStoresBucketWidthExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.UsageVectorStoresBucketWidth)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.UsageVectorStoresBucketWidth value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.UsageVectorStoresBucketWidthExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.UsageVectorStoresBucketWidthNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.UsageVectorStoresBucketWidthNullable.g.cs
new file mode 100644
index 00000000..d80684e5
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.UsageVectorStoresBucketWidthNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class UsageVectorStoresBucketWidthNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.UsageVectorStoresBucketWidth? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.UsageVectorStoresBucketWidthExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.UsageVectorStoresBucketWidth)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.UsageVectorStoresBucketWidth? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.UsageVectorStoresBucketWidthExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.UsageVectorStoresGroupByItem.g.cs b/src/libs/OpenAI/Generated/JsonConverters.UsageVectorStoresGroupByItem.g.cs
new file mode 100644
index 00000000..2090db8b
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.UsageVectorStoresGroupByItem.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class UsageVectorStoresGroupByItemJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.UsageVectorStoresGroupByItem Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.UsageVectorStoresGroupByItemExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.UsageVectorStoresGroupByItem)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.UsageVectorStoresGroupByItem value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.UsageVectorStoresGroupByItemExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.UsageVectorStoresGroupByItemNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.UsageVectorStoresGroupByItemNullable.g.cs
new file mode 100644
index 00000000..f76cfc5e
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.UsageVectorStoresGroupByItemNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class UsageVectorStoresGroupByItemNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.UsageVectorStoresGroupByItem? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.UsageVectorStoresGroupByItemExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.UsageVectorStoresGroupByItem)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.UsageVectorStoresGroupByItem? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.UsageVectorStoresGroupByItemExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.UsageVectorStoresResultObject.g.cs b/src/libs/OpenAI/Generated/JsonConverters.UsageVectorStoresResultObject.g.cs
new file mode 100644
index 00000000..80487939
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.UsageVectorStoresResultObject.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class UsageVectorStoresResultObjectJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.UsageVectorStoresResultObject Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.UsageVectorStoresResultObjectExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.UsageVectorStoresResultObject)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.UsageVectorStoresResultObject value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenAI.UsageVectorStoresResultObjectExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonConverters.UsageVectorStoresResultObjectNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.UsageVectorStoresResultObjectNullable.g.cs
new file mode 100644
index 00000000..b3adec98
--- /dev/null
+++ b/src/libs/OpenAI/Generated/JsonConverters.UsageVectorStoresResultObjectNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenAI.JsonConverters
+{
+ ///
+ public sealed class UsageVectorStoresResultObjectNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenAI.UsageVectorStoresResultObject? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::OpenAI.UsageVectorStoresResultObjectExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenAI.UsageVectorStoresResultObject)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenAI.UsageVectorStoresResultObject? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::OpenAI.UsageVectorStoresResultObjectExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenAI/Generated/JsonSerializerContext.g.cs b/src/libs/OpenAI/Generated/JsonSerializerContext.g.cs
index 4a4a0cb9..8bfb9f9c 100644
--- a/src/libs/OpenAI/Generated/JsonSerializerContext.g.cs
+++ b/src/libs/OpenAI/Generated/JsonSerializerContext.g.cs
@@ -285,6 +285,8 @@ namespace OpenAI
typeof(global::OpenAI.JsonConverters.StaticChunkingStrategyRequestParamTypeNullableJsonConverter),
typeof(global::OpenAI.JsonConverters.ChunkingStrategyRequestParamDiscriminatorTypeJsonConverter),
typeof(global::OpenAI.JsonConverters.ChunkingStrategyRequestParamDiscriminatorTypeNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.CostsResultObjectJsonConverter),
+ typeof(global::OpenAI.JsonConverters.CostsResultObjectNullableJsonConverter),
typeof(global::OpenAI.JsonConverters.CreateAssistantRequestModelJsonConverter),
typeof(global::OpenAI.JsonConverters.CreateAssistantRequestModelNullableJsonConverter),
typeof(global::OpenAI.JsonConverters.CreateAssistantRequestToolDiscriminatorTypeJsonConverter),
@@ -565,6 +567,8 @@ namespace OpenAI
typeof(global::OpenAI.JsonConverters.ProjectUserDeleteResponseObjectNullableJsonConverter),
typeof(global::OpenAI.JsonConverters.ProjectUserUpdateRequestRoleJsonConverter),
typeof(global::OpenAI.JsonConverters.ProjectUserUpdateRequestRoleNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeClientEventConversationItemCreateTypeJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeClientEventConversationItemCreateTypeNullableJsonConverter),
typeof(global::OpenAI.JsonConverters.RealtimeConversationItemObjectJsonConverter),
typeof(global::OpenAI.JsonConverters.RealtimeConversationItemObjectNullableJsonConverter),
typeof(global::OpenAI.JsonConverters.RealtimeConversationItemTypeJsonConverter),
@@ -575,10 +579,20 @@ namespace OpenAI
typeof(global::OpenAI.JsonConverters.RealtimeConversationItemRoleNullableJsonConverter),
typeof(global::OpenAI.JsonConverters.RealtimeConversationItemContentItemTypeJsonConverter),
typeof(global::OpenAI.JsonConverters.RealtimeConversationItemContentItemTypeNullableJsonConverter),
- typeof(global::OpenAI.JsonConverters.RealtimeResponseObjectJsonConverter),
- typeof(global::OpenAI.JsonConverters.RealtimeResponseObjectNullableJsonConverter),
- typeof(global::OpenAI.JsonConverters.RealtimeResponseStatusJsonConverter),
- typeof(global::OpenAI.JsonConverters.RealtimeResponseStatusNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeClientEventConversationItemDeleteTypeJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeClientEventConversationItemDeleteTypeNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeClientEventConversationItemTruncateTypeJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeClientEventConversationItemTruncateTypeNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeClientEventInputAudioBufferAppendTypeJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeClientEventInputAudioBufferAppendTypeNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeClientEventInputAudioBufferClearTypeJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeClientEventInputAudioBufferClearTypeNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeClientEventInputAudioBufferCommitTypeJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeClientEventInputAudioBufferCommitTypeNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeClientEventResponseCancelTypeJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeClientEventResponseCancelTypeNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeClientEventResponseCreateTypeJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeClientEventResponseCreateTypeNullableJsonConverter),
typeof(global::OpenAI.JsonConverters.RealtimeSessionObjectJsonConverter),
typeof(global::OpenAI.JsonConverters.RealtimeSessionObjectNullableJsonConverter),
typeof(global::OpenAI.JsonConverters.RealtimeSessionVoiceJsonConverter),
@@ -591,12 +605,98 @@ namespace OpenAI
typeof(global::OpenAI.JsonConverters.RealtimeSessionToolChoiceNullableJsonConverter),
typeof(global::OpenAI.JsonConverters.RealtimeSessionMaxOutputTokensJsonConverter),
typeof(global::OpenAI.JsonConverters.RealtimeSessionMaxOutputTokensNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeClientEventSessionUpdateTypeJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeClientEventSessionUpdateTypeNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeResponseObjectJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeResponseObjectNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeResponseStatusJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeResponseStatusNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeServerEventConversationCreatedTypeJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeServerEventConversationCreatedTypeNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeServerEventConversationItemCreatedTypeJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeServerEventConversationItemCreatedTypeNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeServerEventConversationItemDeletedTypeJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeServerEventConversationItemDeletedTypeNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeServerEventConversationItemInputAudioTranscriptionCompletedTypeJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeServerEventConversationItemInputAudioTranscriptionCompletedTypeNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeServerEventConversationItemInputAudioTranscriptionFailedTypeJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeServerEventConversationItemInputAudioTranscriptionFailedTypeNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeServerEventConversationItemTruncatedTypeJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeServerEventConversationItemTruncatedTypeNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeServerEventErrorTypeJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeServerEventErrorTypeNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeServerEventInputAudioBufferClearedTypeJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeServerEventInputAudioBufferClearedTypeNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeServerEventInputAudioBufferCommittedTypeJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeServerEventInputAudioBufferCommittedTypeNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeServerEventInputAudioBufferSpeechStartedTypeJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeServerEventInputAudioBufferSpeechStartedTypeNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeServerEventInputAudioBufferSpeechStoppedTypeJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeServerEventInputAudioBufferSpeechStoppedTypeNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeServerEventRateLimitsUpdatedTypeJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeServerEventRateLimitsUpdatedTypeNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeServerEventResponseAudioDeltaTypeJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeServerEventResponseAudioDeltaTypeNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeServerEventResponseAudioDoneTypeJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeServerEventResponseAudioDoneTypeNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeServerEventResponseAudioTranscriptDeltaTypeJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeServerEventResponseAudioTranscriptDeltaTypeNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeServerEventResponseAudioTranscriptDoneTypeJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeServerEventResponseAudioTranscriptDoneTypeNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeServerEventResponseContentPartAddedTypeJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeServerEventResponseContentPartAddedTypeNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeServerEventResponseContentPartAddedPartTypeJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeServerEventResponseContentPartAddedPartTypeNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeServerEventResponseContentPartDoneTypeJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeServerEventResponseContentPartDoneTypeNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeServerEventResponseCreatedTypeJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeServerEventResponseCreatedTypeNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeServerEventResponseDoneTypeJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeServerEventResponseDoneTypeNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeServerEventResponseFunctionCallArgumentsDeltaTypeJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeServerEventResponseFunctionCallArgumentsDeltaTypeNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeServerEventResponseFunctionCallArgumentsDoneTypeJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeServerEventResponseFunctionCallArgumentsDoneTypeNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeServerEventResponseOutputItemAddedTypeJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeServerEventResponseOutputItemAddedTypeNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeServerEventResponseOutputItemDoneTypeJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeServerEventResponseOutputItemDoneTypeNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeServerEventResponseTextDeltaTypeJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeServerEventResponseTextDeltaTypeNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeServerEventResponseTextDoneTypeJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeServerEventResponseTextDoneTypeNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeServerEventSessionCreatedTypeJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeServerEventSessionCreatedTypeNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeServerEventSessionUpdatedTypeJsonConverter),
+ typeof(global::OpenAI.JsonConverters.RealtimeServerEventSessionUpdatedTypeNullableJsonConverter),
typeof(global::OpenAI.JsonConverters.UploadStatusJsonConverter),
typeof(global::OpenAI.JsonConverters.UploadStatusNullableJsonConverter),
typeof(global::OpenAI.JsonConverters.UploadObjectJsonConverter),
typeof(global::OpenAI.JsonConverters.UploadObjectNullableJsonConverter),
typeof(global::OpenAI.JsonConverters.UploadPartObjectJsonConverter),
typeof(global::OpenAI.JsonConverters.UploadPartObjectNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.UsageAudioSpeechesResultObjectJsonConverter),
+ typeof(global::OpenAI.JsonConverters.UsageAudioSpeechesResultObjectNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.UsageAudioTranscriptionsResultObjectJsonConverter),
+ typeof(global::OpenAI.JsonConverters.UsageAudioTranscriptionsResultObjectNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.UsageCodeInterpreterSessionsResultObjectJsonConverter),
+ typeof(global::OpenAI.JsonConverters.UsageCodeInterpreterSessionsResultObjectNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.UsageCompletionsResultObjectJsonConverter),
+ typeof(global::OpenAI.JsonConverters.UsageCompletionsResultObjectNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.UsageEmbeddingsResultObjectJsonConverter),
+ typeof(global::OpenAI.JsonConverters.UsageEmbeddingsResultObjectNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.UsageImagesResultObjectJsonConverter),
+ typeof(global::OpenAI.JsonConverters.UsageImagesResultObjectNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.UsageModerationsResultObjectJsonConverter),
+ typeof(global::OpenAI.JsonConverters.UsageModerationsResultObjectNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.UsageResponseObjectJsonConverter),
+ typeof(global::OpenAI.JsonConverters.UsageResponseObjectNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.UsageTimeBucketObjectJsonConverter),
+ typeof(global::OpenAI.JsonConverters.UsageTimeBucketObjectNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.UsageVectorStoresResultObjectJsonConverter),
+ typeof(global::OpenAI.JsonConverters.UsageVectorStoresResultObjectNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.UsageTimeBucketResultItemDiscriminatorObjectJsonConverter),
+ typeof(global::OpenAI.JsonConverters.UsageTimeBucketResultItemDiscriminatorObjectNullableJsonConverter),
typeof(global::OpenAI.JsonConverters.UserObjectJsonConverter),
typeof(global::OpenAI.JsonConverters.UserObjectNullableJsonConverter),
typeof(global::OpenAI.JsonConverters.UserRoleJsonConverter),
@@ -711,6 +811,46 @@ namespace OpenAI
typeof(global::OpenAI.JsonConverters.ListAssistantsOrderNullableJsonConverter),
typeof(global::OpenAI.JsonConverters.ListFilesOrderJsonConverter),
typeof(global::OpenAI.JsonConverters.ListFilesOrderNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.UsageCostsBucketWidthJsonConverter),
+ typeof(global::OpenAI.JsonConverters.UsageCostsBucketWidthNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.UsageCostsGroupByItemJsonConverter),
+ typeof(global::OpenAI.JsonConverters.UsageCostsGroupByItemNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.UsageAudioSpeechesBucketWidthJsonConverter),
+ typeof(global::OpenAI.JsonConverters.UsageAudioSpeechesBucketWidthNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.UsageAudioSpeechesGroupByItemJsonConverter),
+ typeof(global::OpenAI.JsonConverters.UsageAudioSpeechesGroupByItemNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.UsageAudioTranscriptionsBucketWidthJsonConverter),
+ typeof(global::OpenAI.JsonConverters.UsageAudioTranscriptionsBucketWidthNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.UsageAudioTranscriptionsGroupByItemJsonConverter),
+ typeof(global::OpenAI.JsonConverters.UsageAudioTranscriptionsGroupByItemNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.UsageCodeInterpreterSessionsBucketWidthJsonConverter),
+ typeof(global::OpenAI.JsonConverters.UsageCodeInterpreterSessionsBucketWidthNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.UsageCodeInterpreterSessionsGroupByItemJsonConverter),
+ typeof(global::OpenAI.JsonConverters.UsageCodeInterpreterSessionsGroupByItemNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.UsageCompletionsBucketWidthJsonConverter),
+ typeof(global::OpenAI.JsonConverters.UsageCompletionsBucketWidthNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.UsageCompletionsGroupByItemJsonConverter),
+ typeof(global::OpenAI.JsonConverters.UsageCompletionsGroupByItemNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.UsageEmbeddingsBucketWidthJsonConverter),
+ typeof(global::OpenAI.JsonConverters.UsageEmbeddingsBucketWidthNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.UsageEmbeddingsGroupByItemJsonConverter),
+ typeof(global::OpenAI.JsonConverters.UsageEmbeddingsGroupByItemNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.UsageImagesBucketWidthJsonConverter),
+ typeof(global::OpenAI.JsonConverters.UsageImagesBucketWidthNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.UsageImagesSourceJsonConverter),
+ typeof(global::OpenAI.JsonConverters.UsageImagesSourceNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.UsageImagesSizeJsonConverter),
+ typeof(global::OpenAI.JsonConverters.UsageImagesSizeNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.UsageImagesGroupByItemJsonConverter),
+ typeof(global::OpenAI.JsonConverters.UsageImagesGroupByItemNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.UsageModerationsBucketWidthJsonConverter),
+ typeof(global::OpenAI.JsonConverters.UsageModerationsBucketWidthNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.UsageModerationsGroupByItemJsonConverter),
+ typeof(global::OpenAI.JsonConverters.UsageModerationsGroupByItemNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.UsageVectorStoresBucketWidthJsonConverter),
+ typeof(global::OpenAI.JsonConverters.UsageVectorStoresBucketWidthNullableJsonConverter),
+ typeof(global::OpenAI.JsonConverters.UsageVectorStoresGroupByItemJsonConverter),
+ typeof(global::OpenAI.JsonConverters.UsageVectorStoresGroupByItemNullableJsonConverter),
typeof(global::OpenAI.JsonConverters.ListMessagesOrderJsonConverter),
typeof(global::OpenAI.JsonConverters.ListMessagesOrderNullableJsonConverter),
typeof(global::OpenAI.JsonConverters.ListRunsOrderJsonConverter),
@@ -769,6 +909,7 @@ namespace OpenAI
typeof(global::OpenAI.JsonConverters.FineTuneChatCompletionRequestAssistantMessageJsonConverter),
typeof(global::OpenAI.JsonConverters.VectorStoreFileObjectChunkingStrategyJsonConverter),
typeof(global::OpenAI.JsonConverters.ToolsItem7JsonConverter),
+ typeof(global::OpenAI.JsonConverters.ResultItemJsonConverter),
typeof(global::OpenAI.JsonConverters.RealtimeServerEventJsonConverter),
typeof(global::OpenAI.JsonConverters.OneOfJsonConverter>),
typeof(global::OpenAI.JsonConverters.OneOfJsonConverter>),
diff --git a/src/libs/OpenAI/Generated/JsonSerializerContextTypes.g.cs b/src/libs/OpenAI/Generated/JsonSerializerContextTypes.g.cs
index 19f7e615..d9ccb0d8 100644
--- a/src/libs/OpenAI/Generated/JsonSerializerContextTypes.g.cs
+++ b/src/libs/OpenAI/Generated/JsonSerializerContextTypes.g.cs
@@ -1674,2510 +1674,2898 @@ public sealed partial class JsonSerializerContextTypes
///
///
///
- public global::OpenAI.CreateAssistantRequest? Type414 { get; set; }
+ public global::OpenAI.CostsResult? Type414 { get; set; }
///
///
///
- public global::OpenAI.AnyOf? Type415 { get; set; }
+ public global::OpenAI.CostsResultObject? Type415 { get; set; }
///
///
///
- public global::OpenAI.CreateAssistantRequestModel? Type416 { get; set; }
+ public global::OpenAI.CostsResultAmount? Type416 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type417 { get; set; }
+ public global::OpenAI.CreateAssistantRequest? Type417 { get; set; }
///
///
///
- public global::OpenAI.ToolsItem2? Type418 { get; set; }
+ public global::OpenAI.AnyOf? Type418 { get; set; }
///
///
///
- public global::OpenAI.CreateAssistantRequestToolDiscriminator? Type419 { get; set; }
+ public global::OpenAI.CreateAssistantRequestModel? Type419 { get; set; }
///
///
///
- public global::OpenAI.CreateAssistantRequestToolDiscriminatorType? Type420 { get; set; }
+ public global::System.Collections.Generic.IList? Type420 { get; set; }
///
///
///
- public global::OpenAI.CreateAssistantRequestToolResources? Type421 { get; set; }
+ public global::OpenAI.ToolsItem2? Type421 { get; set; }
///
///
///
- public global::OpenAI.CreateAssistantRequestToolResourcesCodeInterpreter? Type422 { get; set; }
+ public global::OpenAI.CreateAssistantRequestToolDiscriminator? Type422 { get; set; }
///
///
///
- public global::OpenAI.CreateAssistantRequestToolResourcesFileSearch? Type423 { get; set; }
+ public global::OpenAI.CreateAssistantRequestToolDiscriminatorType? Type423 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type424 { get; set; }
+ public global::OpenAI.CreateAssistantRequestToolResources? Type424 { get; set; }
///
///
///
- public global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStore? Type425 { get; set; }
+ public global::OpenAI.CreateAssistantRequestToolResourcesCodeInterpreter? Type425 { get; set; }
///
///
///
- public global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategy? Type426 { get; set; }
+ public global::OpenAI.CreateAssistantRequestToolResourcesFileSearch? Type426 { get; set; }
///
///
///
- public global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1? Type427 { get; set; }
+ public global::System.Collections.Generic.IList? Type427 { get; set; }
///
///
///
- public global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1Type? Type428 { get; set; }
+ public global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStore? Type428 { get; set; }
///
///
///
- public global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2? Type429 { get; set; }
+ public global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategy? Type429 { get; set; }
///
///
///
- public global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2Type? Type430 { get; set; }
+ public global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1? Type430 { get; set; }
///
///
///
- public global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2Static? Type431 { get; set; }
+ public global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1Type? Type431 { get; set; }
///
///
///
- public global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyDiscriminator? Type432 { get; set; }
+ public global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2? Type432 { get; set; }
///
///
///
- public global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyDiscriminatorType? Type433 { get; set; }
+ public global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2Type? Type433 { get; set; }
///
///
///
- public global::OpenAI.CreateChatCompletionFunctionResponse? Type434 { get; set; }
+ public global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2Static? Type434 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type435 { get; set; }
+ public global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyDiscriminator? Type435 { get; set; }
///
///
///
- public global::OpenAI.CreateChatCompletionFunctionResponseChoice? Type436 { get; set; }
+ public global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyDiscriminatorType? Type436 { get; set; }
///
///
///
- public global::OpenAI.CreateChatCompletionFunctionResponseChoiceFinishReason? Type437 { get; set; }
+ public global::OpenAI.CreateChatCompletionFunctionResponse? Type437 { get; set; }
///
///
///
- public global::OpenAI.CreateChatCompletionFunctionResponseObject? Type438 { get; set; }
+ public global::System.Collections.Generic.IList? Type438 { get; set; }
///
///
///
- public global::OpenAI.CreateChatCompletionRequest? Type439 { get; set; }
+ public global::OpenAI.CreateChatCompletionFunctionResponseChoice? Type439 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type440 { get; set; }
+ public global::OpenAI.CreateChatCompletionFunctionResponseChoiceFinishReason? Type440 { get; set; }
///
///
///
- public global::OpenAI.AnyOf? Type441 { get; set; }
+ public global::OpenAI.CreateChatCompletionFunctionResponseObject? Type441 { get; set; }
///
///
///
- public global::OpenAI.CreateChatCompletionRequestModel? Type442 { get; set; }
+ public global::OpenAI.CreateChatCompletionRequest? Type442 { get; set; }
///
///
///
- public global::System.Collections.Generic.Dictionary? Type443 { get; set; }
+ public global::System.Collections.Generic.IList? Type443 { get; set; }
///
///
///
- public global::System.Collections.Generic.Dictionary? Type444 { get; set; }
+ public global::OpenAI.AnyOf? Type444 { get; set; }
///
///
///
- public global::OpenAI.PredictionContent? Type445 { get; set; }
+ public global::OpenAI.CreateChatCompletionRequestModel? Type445 { get; set; }
///
///
///
- public global::OpenAI.PredictionContentType? Type446 { get; set; }
+ public global::System.Collections.Generic.Dictionary? Type446 { get; set; }
///
///
///
- public global::OpenAI.OneOf>? Type447 { get; set; }
+ public global::System.Collections.Generic.Dictionary? Type447 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type448 { get; set; }
+ public global::OpenAI.PredictionContent? Type448 { get; set; }
///
///
///
- public global::OpenAI.CreateChatCompletionRequestAudio? Type449 { get; set; }
+ public global::OpenAI.PredictionContentType? Type449 { get; set; }
///
///
///
- public global::OpenAI.CreateChatCompletionRequestAudioVoice? Type450 { get; set; }
+ public global::OpenAI.OneOf>? Type450 { get; set; }
///
///
///
- public global::OpenAI.CreateChatCompletionRequestAudioFormat? Type451 { get; set; }
+ public global::System.Collections.Generic.IList? Type451 { get; set; }
///
///
///
- public global::OpenAI.ResponseFormat? Type452 { get; set; }
+ public global::OpenAI.CreateChatCompletionRequestAudio? Type452 { get; set; }
///
///
///
- public global::OpenAI.CreateChatCompletionRequestResponseFormatDiscriminator? Type453 { get; set; }
+ public global::OpenAI.CreateChatCompletionRequestAudioVoice? Type453 { get; set; }
///
///
///
- public global::OpenAI.CreateChatCompletionRequestResponseFormatDiscriminatorType? Type454 { get; set; }
+ public global::OpenAI.CreateChatCompletionRequestAudioFormat? Type454 { get; set; }
///
///
///
- public global::OpenAI.CreateChatCompletionRequestServiceTier? Type455 { get; set; }
+ public global::OpenAI.ResponseFormat? Type455 { get; set; }
///
///
///
- public global::OpenAI.OneOf>? Type456 { get; set; }
+ public global::OpenAI.CreateChatCompletionRequestResponseFormatDiscriminator? Type456 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type457 { get; set; }
+ public global::OpenAI.CreateChatCompletionRequestResponseFormatDiscriminatorType? Type457 { get; set; }
///
///
///
- public global::OpenAI.OneOf? Type458 { get; set; }
+ public global::OpenAI.CreateChatCompletionRequestServiceTier? Type458 { get; set; }
///
///
///
- public global::OpenAI.CreateChatCompletionRequestFunctionCall? Type459 { get; set; }
+ public global::OpenAI.OneOf>? Type459 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type460 { get; set; }
+ public global::System.Collections.Generic.IList? Type460 { get; set; }
///
///
///
- public global::OpenAI.CreateChatCompletionResponse? Type461 { get; set; }
+ public global::OpenAI.OneOf? Type461 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type462 { get; set; }
+ public global::OpenAI.CreateChatCompletionRequestFunctionCall? Type462 { get; set; }
///
///
///
- public global::OpenAI.CreateChatCompletionResponseChoice? Type463 { get; set; }
+ public global::System.Collections.Generic.IList? Type463 { get; set; }
///
///
///
- public global::OpenAI.CreateChatCompletionResponseChoiceFinishReason? Type464 { get; set; }
+ public global::OpenAI.CreateChatCompletionResponse? Type464 { get; set; }
///
///
///
- public global::OpenAI.CreateChatCompletionResponseChoiceLogprobs? Type465 { get; set; }
+ public global::System.Collections.Generic.IList? Type465 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type466 { get; set; }
+ public global::OpenAI.CreateChatCompletionResponseChoice? Type466 { get; set; }
///
///
///
- public global::OpenAI.CreateChatCompletionResponseServiceTier? Type467 { get; set; }
+ public global::OpenAI.CreateChatCompletionResponseChoiceFinishReason? Type467 { get; set; }
///
///
///
- public global::OpenAI.CreateChatCompletionResponseObject? Type468 { get; set; }
+ public global::OpenAI.CreateChatCompletionResponseChoiceLogprobs? Type468 { get; set; }
///
///
///
- public global::OpenAI.CreateChatCompletionStreamResponse? Type469 { get; set; }
+ public global::System.Collections.Generic.IList? Type469 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type470 { get; set; }
+ public global::OpenAI.CreateChatCompletionResponseServiceTier? Type470 { get; set; }
///
///
///
- public global::OpenAI.CreateChatCompletionStreamResponseChoice? Type471 { get; set; }
+ public global::OpenAI.CreateChatCompletionResponseObject? Type471 { get; set; }
///
///
///
- public global::OpenAI.CreateChatCompletionStreamResponseChoiceLogprobs? Type472 { get; set; }
+ public global::OpenAI.CreateChatCompletionStreamResponse? Type472 { get; set; }
///
///
///
- public global::OpenAI.CreateChatCompletionStreamResponseChoiceFinishReason? Type473 { get; set; }
+ public global::System.Collections.Generic.IList? Type473 { get; set; }
///
///
///
- public global::OpenAI.CreateChatCompletionStreamResponseServiceTier? Type474 { get; set; }
+ public global::OpenAI.CreateChatCompletionStreamResponseChoice? Type474 { get; set; }
///
///
///
- public global::OpenAI.CreateChatCompletionStreamResponseObject? Type475 { get; set; }
+ public global::OpenAI.CreateChatCompletionStreamResponseChoiceLogprobs? Type475 { get; set; }
///
///
///
- public global::OpenAI.CreateChatCompletionStreamResponseUsage? Type476 { get; set; }
+ public global::OpenAI.CreateChatCompletionStreamResponseChoiceFinishReason? Type476 { get; set; }
///
///
///
- public global::OpenAI.CreateCompletionRequest? Type477 { get; set; }
+ public global::OpenAI.CreateChatCompletionStreamResponseServiceTier? Type477 { get; set; }
///
///
///
- public global::OpenAI.AnyOf? Type478 { get; set; }
+ public global::OpenAI.CreateChatCompletionStreamResponseObject? Type478 { get; set; }
///
///
///
- public global::OpenAI.CreateCompletionRequestModel? Type479 { get; set; }
+ public global::OpenAI.CreateChatCompletionStreamResponseUsage? Type479 { get; set; }
///
///
///
- public global::OpenAI.OneOf, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>>? Type480 { get; set; }
+ public global::OpenAI.CreateCompletionRequest? Type480 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList>? Type481 { get; set; }
+ public global::OpenAI.AnyOf? Type481 { get; set; }
///
///
///
- public global::OpenAI.CreateCompletionResponse? Type482 { get; set; }
+ public global::OpenAI.CreateCompletionRequestModel? Type482 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type483 { get; set; }
+ public global::OpenAI.OneOf, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>>? Type483 { get; set; }
///
///
///
- public global::OpenAI.CreateCompletionResponseChoice? Type484 { get; set; }
+ public global::System.Collections.Generic.IList>? Type484 { get; set; }
///
///
///
- public global::OpenAI.CreateCompletionResponseChoiceFinishReason? Type485 { get; set; }
+ public global::OpenAI.CreateCompletionResponse? Type485 { get; set; }
///
///
///
- public global::OpenAI.CreateCompletionResponseChoiceLogprobs? Type486 { get; set; }
+ public global::System.Collections.Generic.IList? Type486 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type487 { get; set; }
+ public global::OpenAI.CreateCompletionResponseChoice? Type487 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList>? Type488 { get; set; }
+ public global::OpenAI.CreateCompletionResponseChoiceFinishReason? Type488 { get; set; }
///
///
///
- public global::System.Collections.Generic.Dictionary? Type489 { get; set; }
+ public global::OpenAI.CreateCompletionResponseChoiceLogprobs? Type489 { get; set; }
///
///
///
- public global::OpenAI.CreateCompletionResponseObject? Type490 { get; set; }
+ public global::System.Collections.Generic.IList? Type490 { get; set; }
///
///
///
- public global::OpenAI.CreateEmbeddingRequest? Type491 { get; set; }
+ public global::System.Collections.Generic.IList>? Type491 { get; set; }
///
///
///
- public global::OpenAI.AnyOf? Type492 { get; set; }
+ public global::System.Collections.Generic.Dictionary? Type492 { get; set; }
///
///
///
- public global::OpenAI.CreateEmbeddingRequestModel? Type493 { get; set; }
+ public global::OpenAI.CreateCompletionResponseObject? Type493 { get; set; }
///
///
///
- public global::OpenAI.CreateEmbeddingRequestEncodingFormat? Type494 { get; set; }
+ public global::OpenAI.CreateEmbeddingRequest? Type494 { get; set; }
///
///
///
- public global::OpenAI.CreateEmbeddingResponse? Type495 { get; set; }
+ public global::OpenAI.AnyOf? Type495 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type496 { get; set; }
+ public global::OpenAI.CreateEmbeddingRequestModel? Type496 { get; set; }
///
///
///
- public global::OpenAI.Embedding? Type497 { get; set; }
+ public global::OpenAI.CreateEmbeddingRequestEncodingFormat? Type497 { get; set; }
///
///
///
- public global::OpenAI.EmbeddingObject? Type498 { get; set; }
+ public global::OpenAI.CreateEmbeddingResponse? Type498 { get; set; }
///
///
///
- public global::OpenAI.CreateEmbeddingResponseObject? Type499 { get; set; }
+ public global::System.Collections.Generic.IList? Type499 { get; set; }
///
///
///
- public global::OpenAI.CreateEmbeddingResponseUsage? Type500 { get; set; }
+ public global::OpenAI.Embedding? Type500 { get; set; }
///
///
///
- public global::OpenAI.CreateFileRequest? Type501 { get; set; }
+ public global::OpenAI.EmbeddingObject? Type501 { get; set; }
///
///
///
- public global::OpenAI.CreateFileRequestPurpose? Type502 { get; set; }
+ public global::OpenAI.CreateEmbeddingResponseObject? Type502 { get; set; }
///
///
///
- public global::OpenAI.CreateFineTuningJobRequest? Type503 { get; set; }
+ public global::OpenAI.CreateEmbeddingResponseUsage? Type503 { get; set; }
///
///
///
- public global::OpenAI.AnyOf? Type504 { get; set; }
+ public global::OpenAI.CreateFileRequest? Type504 { get; set; }
///
///
///
- public global::OpenAI.CreateFineTuningJobRequestModel? Type505 { get; set; }
+ public global::OpenAI.CreateFileRequestPurpose? Type505 { get; set; }
///
///
///
- public global::OpenAI.CreateFineTuningJobRequestHyperparameters? Type506 { get; set; }
+ public global::OpenAI.CreateFineTuningJobRequest? Type506 { get; set; }
///
///
///
- public global::OpenAI.OneOf? Type507 { get; set; }
+ public global::OpenAI.AnyOf? Type507 { get; set; }
///
///
///
- public global::OpenAI.CreateFineTuningJobRequestHyperparametersBatchSize? Type508 { get; set; }
+ public global::OpenAI.CreateFineTuningJobRequestModel? Type508 { get; set; }
///
///
///
- public global::OpenAI.OneOf? Type509 { get; set; }
+ public global::OpenAI.CreateFineTuningJobRequestHyperparameters? Type509 { get; set; }
///
///
///
- public global::OpenAI.CreateFineTuningJobRequestHyperparametersLearningRateMultiplier? Type510 { get; set; }
+ public global::OpenAI.OneOf? Type510 { get; set; }
///
///
///
- public global::OpenAI.OneOf? Type511 { get; set; }
+ public global::OpenAI.CreateFineTuningJobRequestHyperparametersBatchSize? Type511 { get; set; }
///
///
///
- public global::OpenAI.CreateFineTuningJobRequestHyperparametersNEpochs? Type512 { get; set; }
+ public global::OpenAI.OneOf? Type512 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type513 { get; set; }
+ public global::OpenAI.CreateFineTuningJobRequestHyperparametersLearningRateMultiplier? Type513 { get; set; }
///
///
///
- public global::OpenAI.CreateFineTuningJobRequestIntegration? Type514 { get; set; }
+ public global::OpenAI.OneOf? Type514 { get; set; }
///
///
///
- public global::OpenAI.CreateFineTuningJobRequestIntegrationType? Type515 { get; set; }
+ public global::OpenAI.CreateFineTuningJobRequestHyperparametersNEpochs? Type515 { get; set; }
///
///
///
- public global::OpenAI.CreateFineTuningJobRequestIntegrationWandb? Type516 { get; set; }
+ public global::System.Collections.Generic.IList? Type516 { get; set; }
///
///
///
- public global::OpenAI.CreateImageEditRequest? Type517 { get; set; }
+ public global::OpenAI.CreateFineTuningJobRequestIntegration? Type517 { get; set; }
///
///
///
- public global::OpenAI.AnyOf? Type518 { get; set; }
+ public global::OpenAI.CreateFineTuningJobRequestIntegrationType? Type518 { get; set; }
///
///
///
- public global::OpenAI.CreateImageEditRequestModel? Type519 { get; set; }
+ public global::OpenAI.CreateFineTuningJobRequestIntegrationWandb? Type519 { get; set; }
///
///
///
- public global::OpenAI.CreateImageEditRequestSize? Type520 { get; set; }
+ public global::OpenAI.CreateImageEditRequest? Type520 { get; set; }
///
///
///
- public global::OpenAI.CreateImageEditRequestResponseFormat? Type521 { get; set; }
+ public global::OpenAI.AnyOf? Type521 { get; set; }
///
///
///
- public global::OpenAI.CreateImageRequest? Type522 { get; set; }
+ public global::OpenAI.CreateImageEditRequestModel? Type522 { get; set; }
///
///
///
- public global::OpenAI.AnyOf? Type523 { get; set; }
+ public global::OpenAI.CreateImageEditRequestSize? Type523 { get; set; }
///
///
///
- public global::OpenAI.CreateImageRequestModel? Type524 { get; set; }
+ public global::OpenAI.CreateImageEditRequestResponseFormat? Type524 { get; set; }
///
///
///
- public global::OpenAI.CreateImageRequestQuality? Type525 { get; set; }
+ public global::OpenAI.CreateImageRequest? Type525 { get; set; }
///
///
///
- public global::OpenAI.CreateImageRequestResponseFormat? Type526 { get; set; }
+ public global::OpenAI.AnyOf? Type526 { get; set; }
///
///
///
- public global::OpenAI.CreateImageRequestSize? Type527 { get; set; }
+ public global::OpenAI.CreateImageRequestModel? Type527 { get; set; }
///
///
///
- public global::OpenAI.CreateImageRequestStyle? Type528 { get; set; }
+ public global::OpenAI.CreateImageRequestQuality? Type528 { get; set; }
///
///
///
- public global::OpenAI.CreateImageVariationRequest? Type529 { get; set; }
+ public global::OpenAI.CreateImageRequestResponseFormat? Type529 { get; set; }
///
///
///
- public global::OpenAI.AnyOf? Type530 { get; set; }
+ public global::OpenAI.CreateImageRequestSize? Type530 { get; set; }
///
///
///
- public global::OpenAI.CreateImageVariationRequestModel? Type531 { get; set; }
+ public global::OpenAI.CreateImageRequestStyle? Type531 { get; set; }
///
///
///
- public global::OpenAI.CreateImageVariationRequestResponseFormat? Type532 { get; set; }
+ public global::OpenAI.CreateImageVariationRequest? Type532 { get; set; }
///
///
///
- public global::OpenAI.CreateImageVariationRequestSize? Type533 { get; set; }
+ public global::OpenAI.AnyOf? Type533 { get; set; }
///
///
///
- public global::OpenAI.CreateMessageRequest? Type534 { get; set; }
+ public global::OpenAI.CreateImageVariationRequestModel? Type534 { get; set; }
///
///
///
- public global::OpenAI.CreateMessageRequestRole? Type535 { get; set; }
+ public global::OpenAI.CreateImageVariationRequestResponseFormat? Type535 { get; set; }
///
///
///
- public global::OpenAI.OneOf>? Type536 { get; set; }
+ public global::OpenAI.CreateImageVariationRequestSize? Type536 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type537 { get; set; }
+ public global::OpenAI.CreateMessageRequest? Type537 { get; set; }
///
///
///
- public global::OpenAI.ContentVariant2Item? Type538 { get; set; }
+ public global::OpenAI.CreateMessageRequestRole? Type538 { get; set; }
///
///
///
- public global::OpenAI.MessageRequestContentTextObject? Type539 { get; set; }
+ public global::OpenAI.OneOf>? Type539 { get; set; }
///
///
///
- public global::OpenAI.MessageRequestContentTextObjectType? Type540 { get; set; }
+ public global::System.Collections.Generic.IList? Type540 { get; set; }
///
///
///
- public global::OpenAI.CreateMessageRequestContentVariant2ItemDiscriminator? Type541 { get; set; }
+ public global::OpenAI.ContentVariant2Item? Type541 { get; set; }
///
///
///
- public global::OpenAI.CreateMessageRequestContentVariant2ItemDiscriminatorType? Type542 { get; set; }
+ public global::OpenAI.MessageRequestContentTextObject? Type542 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type543 { get; set; }
+ public global::OpenAI.MessageRequestContentTextObjectType? Type543 { get; set; }
///
///
///
- public global::OpenAI.CreateMessageRequestAttachment? Type544 { get; set; }
+ public global::OpenAI.CreateMessageRequestContentVariant2ItemDiscriminator? Type544 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type545 { get; set; }
+ public global::OpenAI.CreateMessageRequestContentVariant2ItemDiscriminatorType? Type545 { get; set; }
///
///
///
- public global::OpenAI.ToolsItem3? Type546 { get; set; }
+ public global::System.Collections.Generic.IList? Type546 { get; set; }
///
///
///
- public global::OpenAI.CreateMessageRequestAttachmentToolDiscriminator? Type547 { get; set; }
+ public global::OpenAI.CreateMessageRequestAttachment? Type547 { get; set; }
///
///
///
- public global::OpenAI.CreateMessageRequestAttachmentToolDiscriminatorType? Type548 { get; set; }
+ public global::System.Collections.Generic.IList? Type548 { get; set; }
///
///
///
- public global::OpenAI.CreateModerationRequest? Type549 { get; set; }
+ public global::OpenAI.ToolsItem3? Type549 { get; set; }
///
///
///
- public global::OpenAI.OneOf, global::System.Collections.Generic.IList>? Type550 { get; set; }
+ public global::OpenAI.CreateMessageRequestAttachmentToolDiscriminator? Type550 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type551 { get; set; }
+ public global::OpenAI.CreateMessageRequestAttachmentToolDiscriminatorType? Type551 { get; set; }
///
///
///
- public global::OpenAI.InputVariant3Item? Type552 { get; set; }
+ public global::OpenAI.CreateModerationRequest? Type552 { get; set; }
///
///
///
- public global::OpenAI.CreateModerationRequestInputVariant3ItemVariant1? Type553 { get; set; }
+ public global::OpenAI.OneOf, global::System.Collections.Generic.IList>? Type553 { get; set; }
///
///
///
- public global::OpenAI.CreateModerationRequestInputVariant3ItemVariant1Type? Type554 { get; set; }
+ public global::System.Collections.Generic.IList? Type554 { get; set; }
///
///
///
- public global::OpenAI.CreateModerationRequestInputVariant3ItemVariant1ImageUrl? Type555 { get; set; }
+ public global::OpenAI.InputVariant3Item? Type555 { get; set; }
///
///
///
- public global::OpenAI.CreateModerationRequestInputVariant3ItemVariant2? Type556 { get; set; }
+ public global::OpenAI.CreateModerationRequestInputVariant3ItemVariant1? Type556 { get; set; }
///
///
///
- public global::OpenAI.CreateModerationRequestInputVariant3ItemVariant2Type? Type557 { get; set; }
+ public global::OpenAI.CreateModerationRequestInputVariant3ItemVariant1Type? Type557 { get; set; }
///
///
///
- public global::OpenAI.CreateModerationRequestInputVariant3ItemDiscriminator? Type558 { get; set; }
+ public global::OpenAI.CreateModerationRequestInputVariant3ItemVariant1ImageUrl? Type558 { get; set; }
///
///
///
- public global::OpenAI.CreateModerationRequestInputVariant3ItemDiscriminatorType? Type559 { get; set; }
+ public global::OpenAI.CreateModerationRequestInputVariant3ItemVariant2? Type559 { get; set; }
///
///
///
- public global::OpenAI.AnyOf? Type560 { get; set; }
+ public global::OpenAI.CreateModerationRequestInputVariant3ItemVariant2Type? Type560 { get; set; }
///
///
///
- public global::OpenAI.CreateModerationRequestModel? Type561 { get; set; }
+ public global::OpenAI.CreateModerationRequestInputVariant3ItemDiscriminator? Type561 { get; set; }
///
///
///
- public global::OpenAI.CreateModerationResponse? Type562 { get; set; }
+ public global::OpenAI.CreateModerationRequestInputVariant3ItemDiscriminatorType? Type562 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type563 { get; set; }
+ public global::OpenAI.AnyOf? Type563 { get; set; }
///
///
///
- public global::OpenAI.CreateModerationResponseResult? Type564 { get; set; }
+ public global::OpenAI.CreateModerationRequestModel? Type564 { get; set; }
///
///
///
- public global::OpenAI.CreateModerationResponseResultCategories? Type565 { get; set; }
+ public global::OpenAI.CreateModerationResponse? Type565 { get; set; }
///
///
///
- public global::OpenAI.CreateModerationResponseResultCategoryScores? Type566 { get; set; }
+ public global::System.Collections.Generic.IList? Type566 { get; set; }
///
///
///
- public global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypes? Type567 { get; set; }
+ public global::OpenAI.CreateModerationResponseResult? Type567 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type568 { get; set; }
+ public global::OpenAI.CreateModerationResponseResultCategories? Type568 { get; set; }
///
///
///
- public global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHateItem? Type569 { get; set; }
+ public global::OpenAI.CreateModerationResponseResultCategoryScores? Type569 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type570 { get; set; }
+ public global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypes? Type570 { get; set; }
///