From 865335e4f2edc36c9936ca70b2969b5ad499885d Mon Sep 17 00:00:00 2001 From: HavenDV Date: Sat, 28 Sep 2024 16:27:49 +0400 Subject: [PATCH] fix: Fixed update issue. --- src/helpers/FixOpenApiSpec/Program.cs | 3 + .../Properties/launchSettings.json | 8 + ...nRequestInputVariant3ItemVariant1Type.g.cs | 49 + ...InputVariant3ItemVariant1TypeNullable.g.cs | 56 + ...nRequestInputVariant3ItemVariant2Type.g.cs | 49 + ...InputVariant3ItemVariant2TypeNullable.g.cs | 56 + ...tegoryAppliedInputTypesHarassmentItem.g.cs | 49 + ...pliedInputTypesHarassmentItemNullable.g.cs | 56 + ...edInputTypesHarassmentThreateningItem.g.cs | 49 + ...ypesHarassmentThreateningItemNullable.g.cs | 56 + ...sultCategoryAppliedInputTypesHateItem.g.cs | 49 + ...goryAppliedInputTypesHateItemNullable.g.cs | 56 + ...yAppliedInputTypesHateThreateningItem.g.cs | 49 + ...InputTypesHateThreateningItemNullable.g.cs | 56 + ...tCategoryAppliedInputTypesIllicitItem.g.cs | 49 + ...yAppliedInputTypesIllicitItemNullable.g.cs | 56 + ...ryAppliedInputTypesIllicitViolentItem.g.cs | 49 + ...dInputTypesIllicitViolentItemNullable.g.cs | 56 + ...yAppliedInputTypesSelfHarmInstruction.g.cs | 49 + ...InputTypesSelfHarmInstructionNullable.g.cs | 56 + ...ryAppliedInputTypesSelfHarmIntentItem.g.cs | 49 + ...dInputTypesSelfHarmIntentItemNullable.g.cs | 56 + ...CategoryAppliedInputTypesSelfHarmItem.g.cs | 49 + ...AppliedInputTypesSelfHarmItemNullable.g.cs | 56 + ...ltCategoryAppliedInputTypesSexualItem.g.cs | 49 + ...ryAppliedInputTypesSexualItemNullable.g.cs | 56 + ...tCategoryAppliedInputTypesSexualMinor.g.cs | 49 + ...yAppliedInputTypesSexualMinorNullable.g.cs | 56 + ...yAppliedInputTypesViolenceGraphicItem.g.cs | 49 + ...InputTypesViolenceGraphicItemNullable.g.cs | 56 + ...CategoryAppliedInputTypesViolenceItem.g.cs | 49 + ...AppliedInputTypesViolenceItemNullable.g.cs | 56 + .../Generated/JsonSerializerContext.g.cs | 30 + .../Generated/JsonSerializerContextTypes.g.cs | 1342 +++++++++-------- ...I.IModerationsClient.CreateModeration.g.cs | 20 +- .../Generated/OpenAI.IModerationsClient.g.cs | 2 +- .../OpenAI/Generated/OpenAI.IOpenAiApi.g.cs | 2 +- ...OpenAI.Models.CreateModerationRequest.g.cs | 18 +- ...ationRequestInputVariant3ItemVariant1.g.cs | 31 + ...uestInputVariant3ItemVariant1ImageUrl.g.cs | 25 + ...nRequestInputVariant3ItemVariant1Type.g.cs | 45 + ...ationRequestInputVariant3ItemVariant2.g.cs | 32 + ...nRequestInputVariant3ItemVariant2Type.g.cs | 45 + ...I.Models.CreateModerationRequestModel.g.cs | 12 + ...Models.CreateModerationResponseResult.g.cs | 7 + ...ateModerationResponseResultCategories.g.cs | 14 + ...sponseResultCategoryAppliedInputTypes.g.cs | 108 ++ ...tegoryAppliedInputTypesHarassmentItem.g.cs | 45 + ...edInputTypesHarassmentThreateningItem.g.cs | 45 + ...sultCategoryAppliedInputTypesHateItem.g.cs | 45 + ...yAppliedInputTypesHateThreateningItem.g.cs | 45 + ...tCategoryAppliedInputTypesIllicitItem.g.cs | 45 + ...ryAppliedInputTypesIllicitViolentItem.g.cs | 45 + ...yAppliedInputTypesSelfHarmInstruction.g.cs | 51 + ...ryAppliedInputTypesSelfHarmIntentItem.g.cs | 51 + ...CategoryAppliedInputTypesSelfHarmItem.g.cs | 51 + ...ltCategoryAppliedInputTypesSexualItem.g.cs | 51 + ...tCategoryAppliedInputTypesSexualMinor.g.cs | 45 + ...yAppliedInputTypesViolenceGraphicItem.g.cs | 51 + ...CategoryAppliedInputTypesViolenceItem.g.cs | 51 + ...oderationResponseResultCategoryScores.g.cs | 14 + ...AI.ModerationsClient.CreateModeration.g.cs | 20 +- .../Generated/OpenAI.ModerationsClient.g.cs | 2 +- .../OpenAI/Generated/OpenAI.OpenAiApi.g.cs | 2 +- src/libs/OpenAI/openapi.yaml | 226 ++- 65 files changed, 3555 insertions(+), 649 deletions(-) create mode 100644 src/helpers/FixOpenApiSpec/Properties/launchSettings.json create mode 100644 src/libs/OpenAI/Generated/JsonConverters.CreateModerationRequestInputVariant3ItemVariant1Type.g.cs create mode 100644 src/libs/OpenAI/Generated/JsonConverters.CreateModerationRequestInputVariant3ItemVariant1TypeNullable.g.cs create mode 100644 src/libs/OpenAI/Generated/JsonConverters.CreateModerationRequestInputVariant3ItemVariant2Type.g.cs create mode 100644 src/libs/OpenAI/Generated/JsonConverters.CreateModerationRequestInputVariant3ItemVariant2TypeNullable.g.cs create mode 100644 src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentItem.g.cs create mode 100644 src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentItemNullable.g.cs create mode 100644 src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentThreateningItem.g.cs create mode 100644 src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentThreateningItemNullable.g.cs create mode 100644 src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHateItem.g.cs create mode 100644 src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHateItemNullable.g.cs create mode 100644 src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHateThreateningItem.g.cs create mode 100644 src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHateThreateningItemNullable.g.cs create mode 100644 src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesIllicitItem.g.cs create mode 100644 src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesIllicitItemNullable.g.cs create mode 100644 src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesIllicitViolentItem.g.cs create mode 100644 src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesIllicitViolentItemNullable.g.cs create mode 100644 src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmInstruction.g.cs create mode 100644 src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmInstructionNullable.g.cs create mode 100644 src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmIntentItem.g.cs create mode 100644 src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmIntentItemNullable.g.cs create mode 100644 src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmItem.g.cs create mode 100644 src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmItemNullable.g.cs create mode 100644 src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSexualItem.g.cs create mode 100644 src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSexualItemNullable.g.cs create mode 100644 src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSexualMinor.g.cs create mode 100644 src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSexualMinorNullable.g.cs create mode 100644 src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesViolenceGraphicItem.g.cs create mode 100644 src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesViolenceGraphicItemNullable.g.cs create mode 100644 src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesViolenceItem.g.cs create mode 100644 src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesViolenceItemNullable.g.cs create mode 100644 src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationRequestInputVariant3ItemVariant1.g.cs create mode 100644 src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationRequestInputVariant3ItemVariant1ImageUrl.g.cs create mode 100644 src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationRequestInputVariant3ItemVariant1Type.g.cs create mode 100644 src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationRequestInputVariant3ItemVariant2.g.cs create mode 100644 src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationRequestInputVariant3ItemVariant2Type.g.cs create mode 100644 src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationResponseResultCategoryAppliedInputTypes.g.cs create mode 100644 src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentItem.g.cs create mode 100644 src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentThreateningItem.g.cs create mode 100644 src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationResponseResultCategoryAppliedInputTypesHateItem.g.cs create mode 100644 src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationResponseResultCategoryAppliedInputTypesHateThreateningItem.g.cs create mode 100644 src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationResponseResultCategoryAppliedInputTypesIllicitItem.g.cs create mode 100644 src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationResponseResultCategoryAppliedInputTypesIllicitViolentItem.g.cs create mode 100644 src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmInstruction.g.cs create mode 100644 src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmIntentItem.g.cs create mode 100644 src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmItem.g.cs create mode 100644 src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationResponseResultCategoryAppliedInputTypesSexualItem.g.cs create mode 100644 src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationResponseResultCategoryAppliedInputTypesSexualMinor.g.cs create mode 100644 src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationResponseResultCategoryAppliedInputTypesViolenceGraphicItem.g.cs create mode 100644 src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationResponseResultCategoryAppliedInputTypesViolenceItem.g.cs diff --git a/src/helpers/FixOpenApiSpec/Program.cs b/src/helpers/FixOpenApiSpec/Program.cs index e3ca3114..e2a46c8f 100644 --- a/src/helpers/FixOpenApiSpec/Program.cs +++ b/src/helpers/FixOpenApiSpec/Program.cs @@ -13,6 +13,9 @@ text = text.Replace("description: *run_top_p_description", "description: empty"); text = text.Replace("description: &run_top_p_description ", "description: "); +text = text.Replace("example: *moderation_example", "example: empty"); +text = text.Replace("response: &moderation_example |", "response: |"); + var openApiDocument = new OpenApiStringReader().Read(text, out var diagnostics); openApiDocument.Components.Schemas["ParallelToolCalls"]!.Default = null; openApiDocument.Components.Schemas["ParallelToolCalls"]!.Nullable = true; diff --git a/src/helpers/FixOpenApiSpec/Properties/launchSettings.json b/src/helpers/FixOpenApiSpec/Properties/launchSettings.json new file mode 100644 index 00000000..3210de2f --- /dev/null +++ b/src/helpers/FixOpenApiSpec/Properties/launchSettings.json @@ -0,0 +1,8 @@ +{ + "profiles": { + "FixOpenApiSpec": { + "commandName": "Project", + "commandLineArgs": "../../../../../../src/libs/OpenAI/openapi.yaml" + } + } +} \ No newline at end of file diff --git a/src/libs/OpenAI/Generated/JsonConverters.CreateModerationRequestInputVariant3ItemVariant1Type.g.cs b/src/libs/OpenAI/Generated/JsonConverters.CreateModerationRequestInputVariant3ItemVariant1Type.g.cs new file mode 100644 index 00000000..0ef94ec4 --- /dev/null +++ b/src/libs/OpenAI/Generated/JsonConverters.CreateModerationRequestInputVariant3ItemVariant1Type.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace OpenAI.JsonConverters +{ + /// + public sealed class CreateModerationRequestInputVariant3ItemVariant1TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenAI.CreateModerationRequestInputVariant3ItemVariant1Type 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.CreateModerationRequestInputVariant3ItemVariant1TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenAI.CreateModerationRequestInputVariant3ItemVariant1Type)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenAI.CreateModerationRequestInputVariant3ItemVariant1Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenAI.CreateModerationRequestInputVariant3ItemVariant1TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenAI/Generated/JsonConverters.CreateModerationRequestInputVariant3ItemVariant1TypeNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.CreateModerationRequestInputVariant3ItemVariant1TypeNullable.g.cs new file mode 100644 index 00000000..2ac29fdc --- /dev/null +++ b/src/libs/OpenAI/Generated/JsonConverters.CreateModerationRequestInputVariant3ItemVariant1TypeNullable.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace OpenAI.JsonConverters +{ + /// + public sealed class CreateModerationRequestInputVariant3ItemVariant1TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenAI.CreateModerationRequestInputVariant3ItemVariant1Type? 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.CreateModerationRequestInputVariant3ItemVariant1TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenAI.CreateModerationRequestInputVariant3ItemVariant1Type)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenAI.CreateModerationRequestInputVariant3ItemVariant1Type? 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.CreateModerationRequestInputVariant3ItemVariant1TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenAI/Generated/JsonConverters.CreateModerationRequestInputVariant3ItemVariant2Type.g.cs b/src/libs/OpenAI/Generated/JsonConverters.CreateModerationRequestInputVariant3ItemVariant2Type.g.cs new file mode 100644 index 00000000..ad9a9921 --- /dev/null +++ b/src/libs/OpenAI/Generated/JsonConverters.CreateModerationRequestInputVariant3ItemVariant2Type.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace OpenAI.JsonConverters +{ + /// + public sealed class CreateModerationRequestInputVariant3ItemVariant2TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenAI.CreateModerationRequestInputVariant3ItemVariant2Type 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.CreateModerationRequestInputVariant3ItemVariant2TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenAI.CreateModerationRequestInputVariant3ItemVariant2Type)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenAI.CreateModerationRequestInputVariant3ItemVariant2Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenAI.CreateModerationRequestInputVariant3ItemVariant2TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenAI/Generated/JsonConverters.CreateModerationRequestInputVariant3ItemVariant2TypeNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.CreateModerationRequestInputVariant3ItemVariant2TypeNullable.g.cs new file mode 100644 index 00000000..47ab84c8 --- /dev/null +++ b/src/libs/OpenAI/Generated/JsonConverters.CreateModerationRequestInputVariant3ItemVariant2TypeNullable.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace OpenAI.JsonConverters +{ + /// + public sealed class CreateModerationRequestInputVariant3ItemVariant2TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenAI.CreateModerationRequestInputVariant3ItemVariant2Type? 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.CreateModerationRequestInputVariant3ItemVariant2TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenAI.CreateModerationRequestInputVariant3ItemVariant2Type)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenAI.CreateModerationRequestInputVariant3ItemVariant2Type? 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.CreateModerationRequestInputVariant3ItemVariant2TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentItem.g.cs b/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentItem.g.cs new file mode 100644 index 00000000..c2d6dc79 --- /dev/null +++ b/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentItem.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace OpenAI.JsonConverters +{ + /// + public sealed class CreateModerationResponseResultCategoryAppliedInputTypesHarassmentItemJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentItem 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.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentItemExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentItem)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentItem value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentItemExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentItemNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentItemNullable.g.cs new file mode 100644 index 00000000..686fa4b8 --- /dev/null +++ b/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentItemNullable.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace OpenAI.JsonConverters +{ + /// + public sealed class CreateModerationResponseResultCategoryAppliedInputTypesHarassmentItemNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentItem? 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.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentItemExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentItem)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentItem? 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.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentItemExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentThreateningItem.g.cs b/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentThreateningItem.g.cs new file mode 100644 index 00000000..7d69383f --- /dev/null +++ b/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentThreateningItem.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace OpenAI.JsonConverters +{ + /// + public sealed class CreateModerationResponseResultCategoryAppliedInputTypesHarassmentThreateningItemJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentThreateningItem 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.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentThreateningItemExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentThreateningItem)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentThreateningItem value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentThreateningItemExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentThreateningItemNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentThreateningItemNullable.g.cs new file mode 100644 index 00000000..6fdde29c --- /dev/null +++ b/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentThreateningItemNullable.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace OpenAI.JsonConverters +{ + /// + public sealed class CreateModerationResponseResultCategoryAppliedInputTypesHarassmentThreateningItemNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentThreateningItem? 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.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentThreateningItemExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentThreateningItem)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentThreateningItem? 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.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentThreateningItemExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHateItem.g.cs b/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHateItem.g.cs new file mode 100644 index 00000000..0984a292 --- /dev/null +++ b/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHateItem.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace OpenAI.JsonConverters +{ + /// + public sealed class CreateModerationResponseResultCategoryAppliedInputTypesHateItemJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHateItem 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.CreateModerationResponseResultCategoryAppliedInputTypesHateItemExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHateItem)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHateItem value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHateItemExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHateItemNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHateItemNullable.g.cs new file mode 100644 index 00000000..ef00187b --- /dev/null +++ b/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHateItemNullable.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace OpenAI.JsonConverters +{ + /// + public sealed class CreateModerationResponseResultCategoryAppliedInputTypesHateItemNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHateItem? 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.CreateModerationResponseResultCategoryAppliedInputTypesHateItemExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHateItem)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHateItem? 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.CreateModerationResponseResultCategoryAppliedInputTypesHateItemExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHateThreateningItem.g.cs b/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHateThreateningItem.g.cs new file mode 100644 index 00000000..5e34fcc0 --- /dev/null +++ b/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHateThreateningItem.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace OpenAI.JsonConverters +{ + /// + public sealed class CreateModerationResponseResultCategoryAppliedInputTypesHateThreateningItemJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHateThreateningItem 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.CreateModerationResponseResultCategoryAppliedInputTypesHateThreateningItemExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHateThreateningItem)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHateThreateningItem value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHateThreateningItemExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHateThreateningItemNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHateThreateningItemNullable.g.cs new file mode 100644 index 00000000..692c2474 --- /dev/null +++ b/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHateThreateningItemNullable.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace OpenAI.JsonConverters +{ + /// + public sealed class CreateModerationResponseResultCategoryAppliedInputTypesHateThreateningItemNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHateThreateningItem? 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.CreateModerationResponseResultCategoryAppliedInputTypesHateThreateningItemExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHateThreateningItem)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHateThreateningItem? 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.CreateModerationResponseResultCategoryAppliedInputTypesHateThreateningItemExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesIllicitItem.g.cs b/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesIllicitItem.g.cs new file mode 100644 index 00000000..69fa8a7d --- /dev/null +++ b/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesIllicitItem.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace OpenAI.JsonConverters +{ + /// + public sealed class CreateModerationResponseResultCategoryAppliedInputTypesIllicitItemJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesIllicitItem 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.CreateModerationResponseResultCategoryAppliedInputTypesIllicitItemExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesIllicitItem)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesIllicitItem value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesIllicitItemExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesIllicitItemNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesIllicitItemNullable.g.cs new file mode 100644 index 00000000..e6b03212 --- /dev/null +++ b/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesIllicitItemNullable.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace OpenAI.JsonConverters +{ + /// + public sealed class CreateModerationResponseResultCategoryAppliedInputTypesIllicitItemNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesIllicitItem? 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.CreateModerationResponseResultCategoryAppliedInputTypesIllicitItemExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesIllicitItem)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesIllicitItem? 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.CreateModerationResponseResultCategoryAppliedInputTypesIllicitItemExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesIllicitViolentItem.g.cs b/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesIllicitViolentItem.g.cs new file mode 100644 index 00000000..f09b9ce2 --- /dev/null +++ b/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesIllicitViolentItem.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace OpenAI.JsonConverters +{ + /// + public sealed class CreateModerationResponseResultCategoryAppliedInputTypesIllicitViolentItemJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesIllicitViolentItem 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.CreateModerationResponseResultCategoryAppliedInputTypesIllicitViolentItemExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesIllicitViolentItem)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesIllicitViolentItem value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesIllicitViolentItemExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesIllicitViolentItemNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesIllicitViolentItemNullable.g.cs new file mode 100644 index 00000000..48806b90 --- /dev/null +++ b/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesIllicitViolentItemNullable.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace OpenAI.JsonConverters +{ + /// + public sealed class CreateModerationResponseResultCategoryAppliedInputTypesIllicitViolentItemNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesIllicitViolentItem? 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.CreateModerationResponseResultCategoryAppliedInputTypesIllicitViolentItemExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesIllicitViolentItem)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesIllicitViolentItem? 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.CreateModerationResponseResultCategoryAppliedInputTypesIllicitViolentItemExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmInstruction.g.cs b/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmInstruction.g.cs new file mode 100644 index 00000000..5d1b8c22 --- /dev/null +++ b/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmInstruction.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace OpenAI.JsonConverters +{ + /// + public sealed class CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmInstructionJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmInstruction 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.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmInstructionExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmInstruction)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmInstruction value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmInstructionExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmInstructionNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmInstructionNullable.g.cs new file mode 100644 index 00000000..9c138ee3 --- /dev/null +++ b/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmInstructionNullable.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace OpenAI.JsonConverters +{ + /// + public sealed class CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmInstructionNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmInstruction? 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.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmInstructionExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmInstruction)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmInstruction? 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.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmInstructionExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmIntentItem.g.cs b/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmIntentItem.g.cs new file mode 100644 index 00000000..68ebcad1 --- /dev/null +++ b/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmIntentItem.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace OpenAI.JsonConverters +{ + /// + public sealed class CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmIntentItemJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmIntentItem 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.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmIntentItemExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmIntentItem)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmIntentItem value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmIntentItemExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmIntentItemNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmIntentItemNullable.g.cs new file mode 100644 index 00000000..bec24024 --- /dev/null +++ b/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmIntentItemNullable.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace OpenAI.JsonConverters +{ + /// + public sealed class CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmIntentItemNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmIntentItem? 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.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmIntentItemExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmIntentItem)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmIntentItem? 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.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmIntentItemExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmItem.g.cs b/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmItem.g.cs new file mode 100644 index 00000000..26da0e26 --- /dev/null +++ b/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmItem.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace OpenAI.JsonConverters +{ + /// + public sealed class CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmItemJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmItem 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.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmItemExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmItem)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmItem value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmItemExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmItemNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmItemNullable.g.cs new file mode 100644 index 00000000..c4dcf745 --- /dev/null +++ b/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmItemNullable.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace OpenAI.JsonConverters +{ + /// + public sealed class CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmItemNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmItem? 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.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmItemExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmItem)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmItem? 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.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmItemExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSexualItem.g.cs b/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSexualItem.g.cs new file mode 100644 index 00000000..6c5dba64 --- /dev/null +++ b/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSexualItem.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace OpenAI.JsonConverters +{ + /// + public sealed class CreateModerationResponseResultCategoryAppliedInputTypesSexualItemJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSexualItem 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.CreateModerationResponseResultCategoryAppliedInputTypesSexualItemExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSexualItem)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSexualItem value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSexualItemExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSexualItemNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSexualItemNullable.g.cs new file mode 100644 index 00000000..7f2143f7 --- /dev/null +++ b/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSexualItemNullable.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace OpenAI.JsonConverters +{ + /// + public sealed class CreateModerationResponseResultCategoryAppliedInputTypesSexualItemNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSexualItem? 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.CreateModerationResponseResultCategoryAppliedInputTypesSexualItemExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSexualItem)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSexualItem? 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.CreateModerationResponseResultCategoryAppliedInputTypesSexualItemExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSexualMinor.g.cs b/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSexualMinor.g.cs new file mode 100644 index 00000000..b4799715 --- /dev/null +++ b/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSexualMinor.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace OpenAI.JsonConverters +{ + /// + public sealed class CreateModerationResponseResultCategoryAppliedInputTypesSexualMinorJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSexualMinor 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.CreateModerationResponseResultCategoryAppliedInputTypesSexualMinorExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSexualMinor)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSexualMinor value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSexualMinorExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSexualMinorNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSexualMinorNullable.g.cs new file mode 100644 index 00000000..039f3225 --- /dev/null +++ b/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSexualMinorNullable.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace OpenAI.JsonConverters +{ + /// + public sealed class CreateModerationResponseResultCategoryAppliedInputTypesSexualMinorNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSexualMinor? 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.CreateModerationResponseResultCategoryAppliedInputTypesSexualMinorExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSexualMinor)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSexualMinor? 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.CreateModerationResponseResultCategoryAppliedInputTypesSexualMinorExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesViolenceGraphicItem.g.cs b/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesViolenceGraphicItem.g.cs new file mode 100644 index 00000000..809502ae --- /dev/null +++ b/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesViolenceGraphicItem.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace OpenAI.JsonConverters +{ + /// + public sealed class CreateModerationResponseResultCategoryAppliedInputTypesViolenceGraphicItemJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesViolenceGraphicItem 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.CreateModerationResponseResultCategoryAppliedInputTypesViolenceGraphicItemExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesViolenceGraphicItem)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesViolenceGraphicItem value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesViolenceGraphicItemExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesViolenceGraphicItemNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesViolenceGraphicItemNullable.g.cs new file mode 100644 index 00000000..7613a736 --- /dev/null +++ b/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesViolenceGraphicItemNullable.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace OpenAI.JsonConverters +{ + /// + public sealed class CreateModerationResponseResultCategoryAppliedInputTypesViolenceGraphicItemNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesViolenceGraphicItem? 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.CreateModerationResponseResultCategoryAppliedInputTypesViolenceGraphicItemExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesViolenceGraphicItem)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesViolenceGraphicItem? 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.CreateModerationResponseResultCategoryAppliedInputTypesViolenceGraphicItemExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesViolenceItem.g.cs b/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesViolenceItem.g.cs new file mode 100644 index 00000000..79cb6061 --- /dev/null +++ b/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesViolenceItem.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace OpenAI.JsonConverters +{ + /// + public sealed class CreateModerationResponseResultCategoryAppliedInputTypesViolenceItemJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesViolenceItem 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.CreateModerationResponseResultCategoryAppliedInputTypesViolenceItemExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesViolenceItem)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesViolenceItem value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesViolenceItemExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesViolenceItemNullable.g.cs b/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesViolenceItemNullable.g.cs new file mode 100644 index 00000000..29d5950f --- /dev/null +++ b/src/libs/OpenAI/Generated/JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesViolenceItemNullable.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace OpenAI.JsonConverters +{ + /// + public sealed class CreateModerationResponseResultCategoryAppliedInputTypesViolenceItemNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesViolenceItem? 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.CreateModerationResponseResultCategoryAppliedInputTypesViolenceItemExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesViolenceItem)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesViolenceItem? 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.CreateModerationResponseResultCategoryAppliedInputTypesViolenceItemExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenAI/Generated/JsonSerializerContext.g.cs b/src/libs/OpenAI/Generated/JsonSerializerContext.g.cs index f2a08475..d24f9cd8 100644 --- a/src/libs/OpenAI/Generated/JsonSerializerContext.g.cs +++ b/src/libs/OpenAI/Generated/JsonSerializerContext.g.cs @@ -117,8 +117,38 @@ namespace OpenAI typeof(global::OpenAI.JsonConverters.CreateImageVariationRequestResponseFormatNullableJsonConverter), typeof(global::OpenAI.JsonConverters.CreateImageVariationRequestSizeJsonConverter), typeof(global::OpenAI.JsonConverters.CreateImageVariationRequestSizeNullableJsonConverter), + typeof(global::OpenAI.JsonConverters.CreateModerationRequestInputVariant3ItemVariant1TypeJsonConverter), + typeof(global::OpenAI.JsonConverters.CreateModerationRequestInputVariant3ItemVariant1TypeNullableJsonConverter), + typeof(global::OpenAI.JsonConverters.CreateModerationRequestInputVariant3ItemVariant2TypeJsonConverter), + typeof(global::OpenAI.JsonConverters.CreateModerationRequestInputVariant3ItemVariant2TypeNullableJsonConverter), typeof(global::OpenAI.JsonConverters.CreateModerationRequestModelJsonConverter), typeof(global::OpenAI.JsonConverters.CreateModerationRequestModelNullableJsonConverter), + typeof(global::OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHateItemJsonConverter), + typeof(global::OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHateItemNullableJsonConverter), + typeof(global::OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHateThreateningItemJsonConverter), + typeof(global::OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHateThreateningItemNullableJsonConverter), + typeof(global::OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentItemJsonConverter), + typeof(global::OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentItemNullableJsonConverter), + typeof(global::OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentThreateningItemJsonConverter), + typeof(global::OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentThreateningItemNullableJsonConverter), + typeof(global::OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesIllicitItemJsonConverter), + typeof(global::OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesIllicitItemNullableJsonConverter), + typeof(global::OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesIllicitViolentItemJsonConverter), + typeof(global::OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesIllicitViolentItemNullableJsonConverter), + typeof(global::OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmItemJsonConverter), + typeof(global::OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmItemNullableJsonConverter), + typeof(global::OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmIntentItemJsonConverter), + typeof(global::OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmIntentItemNullableJsonConverter), + typeof(global::OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmInstructionJsonConverter), + typeof(global::OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmInstructionNullableJsonConverter), + typeof(global::OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSexualItemJsonConverter), + typeof(global::OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSexualItemNullableJsonConverter), + typeof(global::OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSexualMinorJsonConverter), + typeof(global::OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesSexualMinorNullableJsonConverter), + typeof(global::OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesViolenceItemJsonConverter), + typeof(global::OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesViolenceItemNullableJsonConverter), + typeof(global::OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesViolenceGraphicItemJsonConverter), + typeof(global::OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesViolenceGraphicItemNullableJsonConverter), typeof(global::OpenAI.JsonConverters.OpenAIFileObjectJsonConverter), typeof(global::OpenAI.JsonConverters.OpenAIFileObjectNullableJsonConverter), typeof(global::OpenAI.JsonConverters.OpenAIFilePurposeJsonConverter), diff --git a/src/libs/OpenAI/Generated/JsonSerializerContextTypes.g.cs b/src/libs/OpenAI/Generated/JsonSerializerContextTypes.g.cs index c9756b40..4a63b824 100644 --- a/src/libs/OpenAI/Generated/JsonSerializerContextTypes.g.cs +++ b/src/libs/OpenAI/Generated/JsonSerializerContextTypes.g.cs @@ -713,2406 +713,2546 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::OpenAI.AnyOf? Type175 { get; set; } + public global::OpenAI.OneOf, global::System.Collections.Generic.IList>>? Type175 { get; set; } /// /// /// - public global::OpenAI.CreateModerationRequestModel? Type176 { get; set; } + public global::System.Collections.Generic.IList>? Type176 { get; set; } /// /// /// - public global::OpenAI.CreateModerationResponse? Type177 { get; set; } + public global::OpenAI.OneOf? Type177 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type178 { get; set; } + public global::OpenAI.CreateModerationRequestInputVariant3ItemVariant1? Type178 { get; set; } /// /// /// - public global::OpenAI.CreateModerationResponseResult? Type179 { get; set; } + public global::OpenAI.CreateModerationRequestInputVariant3ItemVariant1Type? Type179 { get; set; } /// /// /// - public global::OpenAI.CreateModerationResponseResultCategories? Type180 { get; set; } + public global::OpenAI.CreateModerationRequestInputVariant3ItemVariant1ImageUrl? Type180 { get; set; } /// /// /// - public global::OpenAI.CreateModerationResponseResultCategoryScores? Type181 { get; set; } + public global::OpenAI.CreateModerationRequestInputVariant3ItemVariant2? Type181 { get; set; } /// /// /// - public global::OpenAI.ListFilesResponse? Type182 { get; set; } + public global::OpenAI.CreateModerationRequestInputVariant3ItemVariant2Type? Type182 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type183 { get; set; } + public global::OpenAI.AnyOf? Type183 { get; set; } /// /// /// - public global::OpenAI.OpenAIFile? Type184 { get; set; } + public global::OpenAI.CreateModerationRequestModel? Type184 { get; set; } /// /// /// - public global::OpenAI.OpenAIFileObject? Type185 { get; set; } + public global::OpenAI.CreateModerationResponse? Type185 { get; set; } /// /// /// - public global::OpenAI.OpenAIFilePurpose? Type186 { get; set; } + public global::System.Collections.Generic.IList? Type186 { get; set; } /// /// /// - public global::OpenAI.OpenAIFileStatus? Type187 { get; set; } + public global::OpenAI.CreateModerationResponseResult? Type187 { get; set; } /// /// /// - public global::OpenAI.ListFilesResponseObject? Type188 { get; set; } + public global::OpenAI.CreateModerationResponseResultCategories? Type188 { get; set; } /// /// /// - public global::OpenAI.CreateFileRequest? Type189 { get; set; } + public global::OpenAI.CreateModerationResponseResultCategoryScores? Type189 { get; set; } /// /// /// - public global::OpenAI.CreateFileRequestPurpose? Type190 { get; set; } + public global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypes? Type190 { get; set; } /// /// /// - public global::OpenAI.DeleteFileResponse? Type191 { get; set; } + public global::System.Collections.Generic.IList? Type191 { get; set; } /// /// /// - public global::OpenAI.DeleteFileResponseObject? Type192 { get; set; } + public global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHateItem? Type192 { get; set; } /// /// /// - public global::OpenAI.CreateUploadRequest? Type193 { get; set; } + public global::System.Collections.Generic.IList? Type193 { get; set; } /// /// /// - public global::OpenAI.CreateUploadRequestPurpose? Type194 { get; set; } + public global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHateThreateningItem? Type194 { get; set; } /// /// /// - public global::OpenAI.AddUploadPartRequest? Type195 { get; set; } + public global::System.Collections.Generic.IList? Type195 { get; set; } /// /// /// - public global::OpenAI.CompleteUploadRequest? Type196 { get; set; } + public global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentItem? Type196 { get; set; } /// /// /// - public global::OpenAI.CancelUploadRequest? Type197 { get; set; } + public global::System.Collections.Generic.IList? Type197 { get; set; } /// /// /// - public global::OpenAI.CreateFineTuningJobRequest? Type198 { get; set; } + public global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentThreateningItem? Type198 { get; set; } /// /// /// - public global::OpenAI.AnyOf? Type199 { get; set; } + public global::System.Collections.Generic.IList? Type199 { get; set; } /// /// /// - public global::OpenAI.CreateFineTuningJobRequestModel? Type200 { get; set; } + public global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesIllicitItem? Type200 { get; set; } /// /// /// - public global::OpenAI.CreateFineTuningJobRequestHyperparameters? Type201 { get; set; } + public global::System.Collections.Generic.IList? Type201 { get; set; } /// /// /// - public global::OpenAI.OneOf? Type202 { get; set; } + public global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesIllicitViolentItem? Type202 { get; set; } /// /// /// - public global::OpenAI.CreateFineTuningJobRequestHyperparametersBatchSize? Type203 { get; set; } + public global::System.Collections.Generic.IList? Type203 { get; set; } /// /// /// - public global::OpenAI.OneOf? Type204 { get; set; } + public global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmItem? Type204 { get; set; } /// /// /// - public global::OpenAI.CreateFineTuningJobRequestHyperparametersLearningRateMultiplier? Type205 { get; set; } + public global::System.Collections.Generic.IList? Type205 { get; set; } /// /// /// - public global::OpenAI.OneOf? Type206 { get; set; } + public global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmIntentItem? Type206 { get; set; } /// /// /// - public global::OpenAI.CreateFineTuningJobRequestHyperparametersNEpochs? Type207 { get; set; } + public global::System.Collections.Generic.IList? Type207 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type208 { get; set; } + public global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmInstruction? Type208 { get; set; } /// /// /// - public global::OpenAI.CreateFineTuningJobRequestIntegration? Type209 { get; set; } + public global::System.Collections.Generic.IList? Type209 { get; set; } /// /// /// - public global::OpenAI.CreateFineTuningJobRequestIntegrationType? Type210 { get; set; } + public global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSexualItem? Type210 { get; set; } /// /// /// - public global::OpenAI.CreateFineTuningJobRequestIntegrationWandb? Type211 { get; set; } + public global::System.Collections.Generic.IList? Type211 { get; set; } /// /// /// - public global::OpenAI.ListFineTuningJobEventsResponse? Type212 { get; set; } + public global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSexualMinor? Type212 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type213 { get; set; } + public global::System.Collections.Generic.IList? Type213 { get; set; } /// /// /// - public global::OpenAI.FineTuningJobEvent? Type214 { get; set; } + public global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesViolenceItem? Type214 { get; set; } /// /// /// - public global::OpenAI.FineTuningJobEventLevel? Type215 { get; set; } + public global::System.Collections.Generic.IList? Type215 { get; set; } /// /// /// - public global::OpenAI.FineTuningJobEventObject? Type216 { get; set; } + public global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesViolenceGraphicItem? Type216 { get; set; } /// /// /// - public global::OpenAI.ListFineTuningJobEventsResponseObject? Type217 { get; set; } + public global::OpenAI.ListFilesResponse? Type217 { get; set; } /// /// /// - public global::OpenAI.ListFineTuningJobCheckpointsResponse? Type218 { get; set; } + public global::System.Collections.Generic.IList? Type218 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type219 { get; set; } + public global::OpenAI.OpenAIFile? Type219 { get; set; } /// /// /// - public global::OpenAI.FineTuningJobCheckpoint? Type220 { get; set; } + public global::OpenAI.OpenAIFileObject? Type220 { get; set; } /// /// /// - public global::OpenAI.FineTuningJobCheckpointMetrics? Type221 { get; set; } + public global::OpenAI.OpenAIFilePurpose? Type221 { get; set; } /// /// /// - public global::OpenAI.FineTuningJobCheckpointObject? Type222 { get; set; } + public global::OpenAI.OpenAIFileStatus? Type222 { get; set; } /// /// /// - public global::OpenAI.ListFineTuningJobCheckpointsResponseObject? Type223 { get; set; } + public global::OpenAI.ListFilesResponseObject? Type223 { get; set; } /// /// /// - public global::OpenAI.CreateEmbeddingRequest? Type224 { get; set; } + public global::OpenAI.CreateFileRequest? Type224 { get; set; } /// /// /// - public global::OpenAI.AnyOf? Type225 { get; set; } + public global::OpenAI.CreateFileRequestPurpose? Type225 { get; set; } /// /// /// - public global::OpenAI.CreateEmbeddingRequestModel? Type226 { get; set; } + public global::OpenAI.DeleteFileResponse? Type226 { get; set; } /// /// /// - public global::OpenAI.CreateEmbeddingRequestEncodingFormat? Type227 { get; set; } + public global::OpenAI.DeleteFileResponseObject? Type227 { get; set; } /// /// /// - public global::OpenAI.CreateEmbeddingResponse? Type228 { get; set; } + public global::OpenAI.CreateUploadRequest? Type228 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type229 { get; set; } + public global::OpenAI.CreateUploadRequestPurpose? Type229 { get; set; } /// /// /// - public global::OpenAI.Embedding? Type230 { get; set; } + public global::OpenAI.AddUploadPartRequest? Type230 { get; set; } /// /// /// - public global::OpenAI.EmbeddingObject? Type231 { get; set; } + public global::OpenAI.CompleteUploadRequest? Type231 { get; set; } /// /// /// - public global::OpenAI.CreateEmbeddingResponseObject? Type232 { get; set; } + public global::OpenAI.CancelUploadRequest? Type232 { get; set; } /// /// /// - public global::OpenAI.CreateEmbeddingResponseUsage? Type233 { get; set; } + public global::OpenAI.CreateFineTuningJobRequest? Type233 { get; set; } /// /// /// - public global::OpenAI.CreateTranscriptionRequest? Type234 { get; set; } + public global::OpenAI.AnyOf? Type234 { get; set; } /// /// /// - public global::OpenAI.AnyOf? Type235 { get; set; } + public global::OpenAI.CreateFineTuningJobRequestModel? Type235 { get; set; } /// /// /// - public global::OpenAI.CreateTranscriptionRequestModel? Type236 { get; set; } + public global::OpenAI.CreateFineTuningJobRequestHyperparameters? Type236 { get; set; } /// /// /// - public global::OpenAI.AudioResponseFormat? Type237 { get; set; } + public global::OpenAI.OneOf? Type237 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type238 { get; set; } + public global::OpenAI.CreateFineTuningJobRequestHyperparametersBatchSize? Type238 { get; set; } /// /// /// - public global::OpenAI.CreateTranscriptionRequestTimestampGranularitie? Type239 { get; set; } + public global::OpenAI.OneOf? Type239 { get; set; } /// /// /// - public global::OpenAI.CreateTranscriptionResponseJson? Type240 { get; set; } + public global::OpenAI.CreateFineTuningJobRequestHyperparametersLearningRateMultiplier? Type240 { get; set; } /// /// /// - public global::OpenAI.TranscriptionSegment? Type241 { get; set; } + public global::OpenAI.OneOf? Type241 { get; set; } /// /// /// - public float? Type242 { get; set; } + public global::OpenAI.CreateFineTuningJobRequestHyperparametersNEpochs? Type242 { get; set; } /// /// /// - public global::OpenAI.TranscriptionWord? Type243 { get; set; } + public global::System.Collections.Generic.IList? Type243 { get; set; } /// /// /// - public global::OpenAI.CreateTranscriptionResponseVerboseJson? Type244 { get; set; } + public global::OpenAI.CreateFineTuningJobRequestIntegration? Type244 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type245 { get; set; } + public global::OpenAI.CreateFineTuningJobRequestIntegrationType? Type245 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type246 { get; set; } + public global::OpenAI.CreateFineTuningJobRequestIntegrationWandb? Type246 { get; set; } /// /// /// - public global::OpenAI.CreateTranslationRequest? Type247 { get; set; } + public global::OpenAI.ListFineTuningJobEventsResponse? Type247 { get; set; } /// /// /// - public global::OpenAI.AnyOf? Type248 { get; set; } + public global::System.Collections.Generic.IList? Type248 { get; set; } /// /// /// - public global::OpenAI.CreateTranslationRequestModel? Type249 { get; set; } + public global::OpenAI.FineTuningJobEvent? Type249 { get; set; } /// /// /// - public global::OpenAI.CreateTranslationResponseJson? Type250 { get; set; } + public global::OpenAI.FineTuningJobEventLevel? Type250 { get; set; } /// /// /// - public global::OpenAI.CreateTranslationResponseVerboseJson? Type251 { get; set; } + public global::OpenAI.FineTuningJobEventObject? Type251 { get; set; } /// /// /// - public global::OpenAI.CreateSpeechRequest? Type252 { get; set; } + public global::OpenAI.ListFineTuningJobEventsResponseObject? Type252 { get; set; } /// /// /// - public global::OpenAI.AnyOf? Type253 { get; set; } + public global::OpenAI.ListFineTuningJobCheckpointsResponse? Type253 { get; set; } /// /// /// - public global::OpenAI.CreateSpeechRequestModel? Type254 { get; set; } + public global::System.Collections.Generic.IList? Type254 { get; set; } /// /// /// - public global::OpenAI.CreateSpeechRequestVoice? Type255 { get; set; } + public global::OpenAI.FineTuningJobCheckpoint? Type255 { get; set; } /// /// /// - public global::OpenAI.CreateSpeechRequestResponseFormat? Type256 { get; set; } + public global::OpenAI.FineTuningJobCheckpointMetrics? Type256 { get; set; } /// /// /// - public global::OpenAI.Upload? Type257 { get; set; } + public global::OpenAI.FineTuningJobCheckpointObject? Type257 { get; set; } /// /// /// - public global::OpenAI.UploadStatus? Type258 { get; set; } + public global::OpenAI.ListFineTuningJobCheckpointsResponseObject? Type258 { get; set; } /// /// /// - public global::OpenAI.UploadObject? Type259 { get; set; } + public global::OpenAI.CreateEmbeddingRequest? Type259 { get; set; } /// /// /// - public global::OpenAI.UploadPart? Type260 { get; set; } + public global::OpenAI.AnyOf? Type260 { get; set; } /// /// /// - public global::OpenAI.UploadPartObject? Type261 { get; set; } + public global::OpenAI.CreateEmbeddingRequestModel? Type261 { get; set; } /// /// /// - public global::OpenAI.FinetuneChatRequestInput? Type262 { get; set; } + public global::OpenAI.CreateEmbeddingRequestEncodingFormat? Type262 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type263 { get; set; } + public global::OpenAI.CreateEmbeddingResponse? Type263 { get; set; } /// /// /// - public global::OpenAI.OneOf? Type264 { get; set; } + public global::System.Collections.Generic.IList? Type264 { get; set; } /// /// /// - public global::OpenAI.FinetuneCompletionRequestInput? Type265 { get; set; } + public global::OpenAI.Embedding? Type265 { get; set; } /// /// /// - public global::OpenAI.RunCompletionUsage? Type266 { get; set; } + public global::OpenAI.EmbeddingObject? Type266 { get; set; } /// /// /// - public global::OpenAI.RunStepCompletionUsage? Type267 { get; set; } + public global::OpenAI.CreateEmbeddingResponseObject? Type267 { get; set; } /// /// /// - public global::OpenAI.AssistantsApiResponseFormatOption? Type268 { get; set; } + public global::OpenAI.CreateEmbeddingResponseUsage? Type268 { get; set; } /// /// /// - public global::OpenAI.AssistantsApiResponseFormatOptionEnum? Type269 { get; set; } + public global::OpenAI.CreateTranscriptionRequest? Type269 { get; set; } /// /// /// - public global::OpenAI.AssistantObject? Type270 { get; set; } + public global::OpenAI.AnyOf? Type270 { get; set; } /// /// /// - public global::OpenAI.AssistantObjectObject? Type271 { get; set; } + public global::OpenAI.CreateTranscriptionRequestModel? Type271 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type272 { get; set; } + public global::OpenAI.AudioResponseFormat? Type272 { get; set; } /// /// /// - public global::OpenAI.OneOf? Type273 { get; set; } + public global::System.Collections.Generic.IList? Type273 { get; set; } /// /// /// - public global::OpenAI.AssistantToolsCode? Type274 { get; set; } + public global::OpenAI.CreateTranscriptionRequestTimestampGranularitie? Type274 { get; set; } /// /// /// - public global::OpenAI.AssistantToolsCodeType? Type275 { get; set; } + public global::OpenAI.CreateTranscriptionResponseJson? Type275 { get; set; } /// /// /// - public global::OpenAI.AssistantToolsFileSearch? Type276 { get; set; } + public global::OpenAI.TranscriptionSegment? Type276 { get; set; } /// /// /// - public global::OpenAI.AssistantToolsFileSearchType? Type277 { get; set; } + public float? Type277 { get; set; } /// /// /// - public global::OpenAI.AssistantToolsFileSearchFileSearch? Type278 { get; set; } + public global::OpenAI.TranscriptionWord? Type278 { get; set; } /// /// /// - public global::OpenAI.FileSearchRankingOptions? Type279 { get; set; } + public global::OpenAI.CreateTranscriptionResponseVerboseJson? Type279 { get; set; } /// /// /// - public global::OpenAI.FileSearchRankingOptionsRanker? Type280 { get; set; } + public global::System.Collections.Generic.IList? Type280 { get; set; } /// /// /// - public global::OpenAI.AssistantToolsFunction? Type281 { get; set; } + public global::System.Collections.Generic.IList? Type281 { get; set; } /// /// /// - public global::OpenAI.AssistantToolsFunctionType? Type282 { get; set; } + public global::OpenAI.CreateTranslationRequest? Type282 { get; set; } /// /// /// - public global::OpenAI.AssistantObjectToolResources? Type283 { get; set; } + public global::OpenAI.AnyOf? Type283 { get; set; } /// /// /// - public global::OpenAI.AssistantObjectToolResourcesCodeInterpreter? Type284 { get; set; } + public global::OpenAI.CreateTranslationRequestModel? Type284 { get; set; } /// /// /// - public global::OpenAI.AssistantObjectToolResourcesFileSearch? Type285 { get; set; } + public global::OpenAI.CreateTranslationResponseJson? Type285 { get; set; } /// /// /// - public global::OpenAI.AssistantObjectMetadata? Type286 { get; set; } + public global::OpenAI.CreateTranslationResponseVerboseJson? Type286 { get; set; } /// /// /// - public global::OpenAI.CreateAssistantRequest? Type287 { get; set; } + public global::OpenAI.CreateSpeechRequest? Type287 { get; set; } /// /// /// - public global::OpenAI.AnyOf? Type288 { get; set; } + public global::OpenAI.AnyOf? Type288 { get; set; } /// /// /// - public global::OpenAI.CreateAssistantRequestModel? Type289 { get; set; } + public global::OpenAI.CreateSpeechRequestModel? Type289 { get; set; } /// /// /// - public global::OpenAI.CreateAssistantRequestToolResources? Type290 { get; set; } + public global::OpenAI.CreateSpeechRequestVoice? Type290 { get; set; } /// /// /// - public global::OpenAI.CreateAssistantRequestToolResourcesCodeInterpreter? Type291 { get; set; } + public global::OpenAI.CreateSpeechRequestResponseFormat? Type291 { get; set; } /// /// /// - public global::OpenAI.CreateAssistantRequestToolResourcesFileSearch? Type292 { get; set; } + public global::OpenAI.Upload? Type292 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type293 { get; set; } + public global::OpenAI.UploadStatus? Type293 { get; set; } /// /// /// - public global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStore? Type294 { get; set; } + public global::OpenAI.UploadObject? Type294 { get; set; } /// /// /// - public global::OpenAI.OneOf? Type295 { get; set; } + public global::OpenAI.UploadPart? Type295 { get; set; } /// /// /// - public global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1? Type296 { get; set; } + public global::OpenAI.UploadPartObject? Type296 { get; set; } /// /// /// - public global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1Type? Type297 { get; set; } + public global::OpenAI.FinetuneChatRequestInput? Type297 { get; set; } /// /// /// - public global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2? Type298 { get; set; } + public global::System.Collections.Generic.IList>? Type298 { get; set; } /// /// /// - public global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2Type? Type299 { get; set; } + public global::OpenAI.OneOf? Type299 { get; set; } /// /// /// - public global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2Static? Type300 { get; set; } + public global::OpenAI.FinetuneCompletionRequestInput? Type300 { get; set; } /// /// /// - public global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreMetadata? Type301 { get; set; } + public global::OpenAI.RunCompletionUsage? Type301 { get; set; } /// /// /// - public global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVariant1? Type302 { get; set; } + public global::OpenAI.RunStepCompletionUsage? Type302 { get; set; } /// /// /// - public global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVariant2? Type303 { get; set; } + public global::OpenAI.AssistantsApiResponseFormatOption? Type303 { get; set; } /// /// /// - public global::OpenAI.CreateAssistantRequestMetadata? Type304 { get; set; } + public global::OpenAI.AssistantsApiResponseFormatOptionEnum? Type304 { get; set; } /// /// /// - public global::OpenAI.ModifyAssistantRequest? Type305 { get; set; } + public global::OpenAI.AssistantObject? Type305 { get; set; } /// /// /// - public global::OpenAI.ModifyAssistantRequestToolResources? Type306 { get; set; } + public global::OpenAI.AssistantObjectObject? Type306 { get; set; } /// /// /// - public global::OpenAI.ModifyAssistantRequestToolResourcesCodeInterpreter? Type307 { get; set; } + public global::System.Collections.Generic.IList>? Type307 { get; set; } /// /// /// - public global::OpenAI.ModifyAssistantRequestToolResourcesFileSearch? Type308 { get; set; } + public global::OpenAI.OneOf? Type308 { get; set; } /// /// /// - public global::OpenAI.ModifyAssistantRequestMetadata? Type309 { get; set; } + public global::OpenAI.AssistantToolsCode? Type309 { get; set; } /// /// /// - public global::OpenAI.DeleteAssistantResponse? Type310 { get; set; } + public global::OpenAI.AssistantToolsCodeType? Type310 { get; set; } /// /// /// - public global::OpenAI.DeleteAssistantResponseObject? Type311 { get; set; } + public global::OpenAI.AssistantToolsFileSearch? Type311 { get; set; } /// /// /// - public global::OpenAI.ListAssistantsResponse? Type312 { get; set; } + public global::OpenAI.AssistantToolsFileSearchType? Type312 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type313 { get; set; } + public global::OpenAI.AssistantToolsFileSearchFileSearch? Type313 { get; set; } /// /// /// - public global::OpenAI.AssistantToolsFileSearchTypeOnly? Type314 { get; set; } + public global::OpenAI.FileSearchRankingOptions? Type314 { get; set; } /// /// /// - public global::OpenAI.AssistantToolsFileSearchTypeOnlyType? Type315 { get; set; } + public global::OpenAI.FileSearchRankingOptionsRanker? Type315 { get; set; } /// /// /// - public global::OpenAI.TruncationObject? Type316 { get; set; } + public global::OpenAI.AssistantToolsFunction? Type316 { get; set; } /// /// /// - public global::OpenAI.TruncationObjectType? Type317 { get; set; } + public global::OpenAI.AssistantToolsFunctionType? Type317 { get; set; } /// /// /// - public global::OpenAI.AssistantsApiToolChoiceOption? Type318 { get; set; } + public global::OpenAI.AssistantObjectToolResources? Type318 { get; set; } /// /// /// - public global::OpenAI.AssistantsApiToolChoiceOptionEnum? Type319 { get; set; } + public global::OpenAI.AssistantObjectToolResourcesCodeInterpreter? Type319 { get; set; } /// /// /// - public global::OpenAI.AssistantsNamedToolChoice? Type320 { get; set; } + public global::OpenAI.AssistantObjectToolResourcesFileSearch? Type320 { get; set; } /// /// /// - public global::OpenAI.AssistantsNamedToolChoiceType? Type321 { get; set; } + public global::OpenAI.AssistantObjectMetadata? Type321 { get; set; } /// /// /// - public global::OpenAI.AssistantsNamedToolChoiceFunction? Type322 { get; set; } + public global::OpenAI.CreateAssistantRequest? Type322 { get; set; } /// /// /// - public global::OpenAI.RunObject? Type323 { get; set; } + public global::OpenAI.AnyOf? Type323 { get; set; } /// /// /// - public global::OpenAI.RunObjectObject? Type324 { get; set; } + public global::OpenAI.CreateAssistantRequestModel? Type324 { get; set; } /// /// /// - public global::OpenAI.RunObjectStatus? Type325 { get; set; } + public global::OpenAI.CreateAssistantRequestToolResources? Type325 { get; set; } /// /// /// - public global::OpenAI.RunObjectRequiredAction? Type326 { get; set; } + public global::OpenAI.CreateAssistantRequestToolResourcesCodeInterpreter? Type326 { get; set; } /// /// /// - public global::OpenAI.RunObjectRequiredActionType? Type327 { get; set; } + public global::OpenAI.CreateAssistantRequestToolResourcesFileSearch? Type327 { get; set; } /// /// /// - public global::OpenAI.RunObjectRequiredActionSubmitToolOutputs? Type328 { get; set; } + public global::System.Collections.Generic.IList? Type328 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type329 { get; set; } + public global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStore? Type329 { get; set; } /// /// /// - public global::OpenAI.RunToolCallObject? Type330 { get; set; } + public global::OpenAI.OneOf? Type330 { get; set; } /// /// /// - public global::OpenAI.RunToolCallObjectType? Type331 { get; set; } + public global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1? Type331 { get; set; } /// /// /// - public global::OpenAI.RunToolCallObjectFunction? Type332 { get; set; } + public global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1Type? Type332 { get; set; } /// /// /// - public global::OpenAI.RunObjectLastError? Type333 { get; set; } + public global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2? Type333 { get; set; } /// /// /// - public global::OpenAI.RunObjectLastErrorCode? Type334 { get; set; } + public global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2Type? Type334 { get; set; } /// /// /// - public global::OpenAI.RunObjectIncompleteDetails? Type335 { get; set; } + public global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2Static? Type335 { get; set; } /// /// /// - public global::OpenAI.RunObjectIncompleteDetailsReason? Type336 { get; set; } + public global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreMetadata? Type336 { get; set; } /// /// /// - public global::OpenAI.RunObjectMetadata? Type337 { get; set; } + public global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVariant1? Type337 { get; set; } /// /// /// - public global::OpenAI.CreateRunRequest? Type338 { get; set; } + public global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVariant2? Type338 { get; set; } /// /// /// - public global::OpenAI.AnyOf? Type339 { get; set; } + public global::OpenAI.CreateAssistantRequestMetadata? Type339 { get; set; } /// /// /// - public global::OpenAI.CreateRunRequestModel? Type340 { get; set; } + public global::OpenAI.ModifyAssistantRequest? Type340 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type341 { get; set; } + public global::OpenAI.ModifyAssistantRequestToolResources? Type341 { get; set; } /// /// /// - public global::OpenAI.CreateMessageRequest? Type342 { get; set; } + public global::OpenAI.ModifyAssistantRequestToolResourcesCodeInterpreter? Type342 { get; set; } /// /// /// - public global::OpenAI.CreateMessageRequestRole? Type343 { get; set; } + public global::OpenAI.ModifyAssistantRequestToolResourcesFileSearch? Type343 { get; set; } /// /// /// - public global::OpenAI.OneOf>>? Type344 { get; set; } + public global::OpenAI.ModifyAssistantRequestMetadata? Type344 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type345 { get; set; } + public global::OpenAI.DeleteAssistantResponse? Type345 { get; set; } /// /// /// - public global::OpenAI.OneOf? Type346 { get; set; } + public global::OpenAI.DeleteAssistantResponseObject? Type346 { get; set; } /// /// /// - public global::OpenAI.MessageContentImageFileObject? Type347 { get; set; } + public global::OpenAI.ListAssistantsResponse? Type347 { get; set; } /// /// /// - public global::OpenAI.MessageContentImageFileObjectType? Type348 { get; set; } + public global::System.Collections.Generic.IList? Type348 { get; set; } /// /// /// - public global::OpenAI.MessageContentImageFileObjectImageFile? Type349 { get; set; } + public global::OpenAI.AssistantToolsFileSearchTypeOnly? Type349 { get; set; } /// /// /// - public global::OpenAI.MessageContentImageFileObjectImageFileDetail? Type350 { get; set; } + public global::OpenAI.AssistantToolsFileSearchTypeOnlyType? Type350 { get; set; } /// /// /// - public global::OpenAI.MessageContentImageUrlObject? Type351 { get; set; } + public global::OpenAI.TruncationObject? Type351 { get; set; } /// /// /// - public global::OpenAI.MessageContentImageUrlObjectType? Type352 { get; set; } + public global::OpenAI.TruncationObjectType? Type352 { get; set; } /// /// /// - public global::OpenAI.MessageContentImageUrlObjectImageUrl? Type353 { get; set; } + public global::OpenAI.AssistantsApiToolChoiceOption? Type353 { get; set; } /// /// /// - public global::OpenAI.MessageContentImageUrlObjectImageUrlDetail? Type354 { get; set; } + public global::OpenAI.AssistantsApiToolChoiceOptionEnum? Type354 { get; set; } /// /// /// - public global::OpenAI.MessageRequestContentTextObject? Type355 { get; set; } + public global::OpenAI.AssistantsNamedToolChoice? Type355 { get; set; } /// /// /// - public global::OpenAI.MessageRequestContentTextObjectType? Type356 { get; set; } + public global::OpenAI.AssistantsNamedToolChoiceType? Type356 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type357 { get; set; } + public global::OpenAI.AssistantsNamedToolChoiceFunction? Type357 { get; set; } /// /// /// - public global::OpenAI.CreateMessageRequestAttachment? Type358 { get; set; } + public global::OpenAI.RunObject? Type358 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type359 { get; set; } + public global::OpenAI.RunObjectObject? Type359 { get; set; } /// /// /// - public global::OpenAI.OneOf? Type360 { get; set; } + public global::OpenAI.RunObjectStatus? Type360 { get; set; } /// /// /// - public global::OpenAI.CreateMessageRequestMetadata? Type361 { get; set; } + public global::OpenAI.RunObjectRequiredAction? Type361 { get; set; } /// /// /// - public global::OpenAI.CreateRunRequestMetadata? Type362 { get; set; } + public global::OpenAI.RunObjectRequiredActionType? Type362 { get; set; } /// /// /// - public global::OpenAI.ListRunsResponse? Type363 { get; set; } + public global::OpenAI.RunObjectRequiredActionSubmitToolOutputs? Type363 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type364 { get; set; } + public global::System.Collections.Generic.IList? Type364 { get; set; } /// /// /// - public global::OpenAI.ModifyRunRequest? Type365 { get; set; } + public global::OpenAI.RunToolCallObject? Type365 { get; set; } /// /// /// - public global::OpenAI.ModifyRunRequestMetadata? Type366 { get; set; } + public global::OpenAI.RunToolCallObjectType? Type366 { get; set; } /// /// /// - public global::OpenAI.SubmitToolOutputsRunRequest? Type367 { get; set; } + public global::OpenAI.RunToolCallObjectFunction? Type367 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type368 { get; set; } + public global::OpenAI.RunObjectLastError? Type368 { get; set; } /// /// /// - public global::OpenAI.SubmitToolOutputsRunRequestToolOutput? Type369 { get; set; } + public global::OpenAI.RunObjectLastErrorCode? Type369 { get; set; } /// /// /// - public global::OpenAI.CreateThreadAndRunRequest? Type370 { get; set; } + public global::OpenAI.RunObjectIncompleteDetails? Type370 { get; set; } /// /// /// - public global::OpenAI.CreateThreadRequest? Type371 { get; set; } + public global::OpenAI.RunObjectIncompleteDetailsReason? Type371 { get; set; } /// /// /// - public global::OpenAI.CreateThreadRequestToolResources? Type372 { get; set; } + public global::OpenAI.RunObjectMetadata? Type372 { get; set; } /// /// /// - public global::OpenAI.CreateThreadRequestToolResourcesCodeInterpreter? Type373 { get; set; } + public global::OpenAI.CreateRunRequest? Type373 { get; set; } /// /// /// - public global::OpenAI.CreateThreadRequestToolResourcesFileSearch? Type374 { get; set; } + public global::OpenAI.AnyOf? Type374 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type375 { get; set; } + public global::OpenAI.CreateRunRequestModel? Type375 { get; set; } /// /// /// - public global::OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStore? Type376 { get; set; } + public global::System.Collections.Generic.IList? Type376 { get; set; } /// /// /// - public global::OpenAI.OneOf? Type377 { get; set; } + public global::OpenAI.CreateMessageRequest? Type377 { get; set; } /// /// /// - public global::OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1? Type378 { get; set; } + public global::OpenAI.CreateMessageRequestRole? Type378 { get; set; } /// /// /// - public global::OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1Type? Type379 { get; set; } + public global::OpenAI.OneOf>>? Type379 { get; set; } /// /// /// - public global::OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2? Type380 { get; set; } + public global::System.Collections.Generic.IList>? Type380 { get; set; } /// /// /// - public global::OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2Type? Type381 { get; set; } + public global::OpenAI.OneOf? Type381 { get; set; } /// /// /// - public global::OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2Static? Type382 { get; set; } + public global::OpenAI.MessageContentImageFileObject? Type382 { get; set; } /// /// /// - public global::OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreMetadata? Type383 { get; set; } + public global::OpenAI.MessageContentImageFileObjectType? Type383 { get; set; } /// /// /// - public global::OpenAI.CreateThreadRequestToolResourcesFileSearchVariant1? Type384 { get; set; } + public global::OpenAI.MessageContentImageFileObjectImageFile? Type384 { get; set; } /// /// /// - public global::OpenAI.CreateThreadRequestToolResourcesFileSearchVariant2? Type385 { get; set; } + public global::OpenAI.MessageContentImageFileObjectImageFileDetail? Type385 { get; set; } /// /// /// - public global::OpenAI.CreateThreadRequestMetadata? Type386 { get; set; } + public global::OpenAI.MessageContentImageUrlObject? Type386 { get; set; } /// /// /// - public global::OpenAI.AnyOf? Type387 { get; set; } + public global::OpenAI.MessageContentImageUrlObjectType? Type387 { get; set; } /// /// /// - public global::OpenAI.CreateThreadAndRunRequestModel? Type388 { get; set; } + public global::OpenAI.MessageContentImageUrlObjectImageUrl? Type388 { get; set; } /// /// /// - public global::OpenAI.CreateThreadAndRunRequestToolResources? Type389 { get; set; } + public global::OpenAI.MessageContentImageUrlObjectImageUrlDetail? Type389 { get; set; } /// /// /// - public global::OpenAI.CreateThreadAndRunRequestToolResourcesCodeInterpreter? Type390 { get; set; } + public global::OpenAI.MessageRequestContentTextObject? Type390 { get; set; } /// /// /// - public global::OpenAI.CreateThreadAndRunRequestToolResourcesFileSearch? Type391 { get; set; } + public global::OpenAI.MessageRequestContentTextObjectType? Type391 { get; set; } /// /// /// - public global::OpenAI.CreateThreadAndRunRequestMetadata? Type392 { get; set; } + public global::System.Collections.Generic.IList? Type392 { get; set; } /// /// /// - public global::OpenAI.ThreadObject? Type393 { get; set; } + public global::OpenAI.CreateMessageRequestAttachment? Type393 { get; set; } /// /// /// - public global::OpenAI.ThreadObjectObject? Type394 { get; set; } + public global::System.Collections.Generic.IList>? Type394 { get; set; } /// /// /// - public global::OpenAI.ThreadObjectToolResources? Type395 { get; set; } + public global::OpenAI.OneOf? Type395 { get; set; } /// /// /// - public global::OpenAI.ThreadObjectToolResourcesCodeInterpreter? Type396 { get; set; } + public global::OpenAI.CreateMessageRequestMetadata? Type396 { get; set; } /// /// /// - public global::OpenAI.ThreadObjectToolResourcesFileSearch? Type397 { get; set; } + public global::OpenAI.CreateRunRequestMetadata? Type397 { get; set; } /// /// /// - public global::OpenAI.ThreadObjectMetadata? Type398 { get; set; } + public global::OpenAI.ListRunsResponse? Type398 { get; set; } /// /// /// - public global::OpenAI.ModifyThreadRequest? Type399 { get; set; } + public global::System.Collections.Generic.IList? Type399 { get; set; } /// /// /// - public global::OpenAI.ModifyThreadRequestToolResources? Type400 { get; set; } + public global::OpenAI.ModifyRunRequest? Type400 { get; set; } /// /// /// - public global::OpenAI.ModifyThreadRequestToolResourcesCodeInterpreter? Type401 { get; set; } + public global::OpenAI.ModifyRunRequestMetadata? Type401 { get; set; } /// /// /// - public global::OpenAI.ModifyThreadRequestToolResourcesFileSearch? Type402 { get; set; } + public global::OpenAI.SubmitToolOutputsRunRequest? Type402 { get; set; } /// /// /// - public global::OpenAI.ModifyThreadRequestMetadata? Type403 { get; set; } + public global::System.Collections.Generic.IList? Type403 { get; set; } /// /// /// - public global::OpenAI.DeleteThreadResponse? Type404 { get; set; } + public global::OpenAI.SubmitToolOutputsRunRequestToolOutput? Type404 { get; set; } /// /// /// - public global::OpenAI.DeleteThreadResponseObject? Type405 { get; set; } + public global::OpenAI.CreateThreadAndRunRequest? Type405 { get; set; } /// /// /// - public global::OpenAI.ListThreadsResponse? Type406 { get; set; } + public global::OpenAI.CreateThreadRequest? Type406 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type407 { get; set; } + public global::OpenAI.CreateThreadRequestToolResources? Type407 { get; set; } /// /// /// - public global::OpenAI.MessageObject? Type408 { get; set; } + public global::OpenAI.CreateThreadRequestToolResourcesCodeInterpreter? Type408 { get; set; } /// /// /// - public global::OpenAI.MessageObjectObject? Type409 { get; set; } + public global::OpenAI.CreateThreadRequestToolResourcesFileSearch? Type409 { get; set; } /// /// /// - public global::OpenAI.MessageObjectStatus? Type410 { get; set; } + public global::System.Collections.Generic.IList? Type410 { get; set; } /// /// /// - public global::OpenAI.MessageObjectIncompleteDetails? Type411 { get; set; } + public global::OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStore? Type411 { get; set; } /// /// /// - public global::OpenAI.MessageObjectIncompleteDetailsReason? Type412 { get; set; } + public global::OpenAI.OneOf? Type412 { get; set; } /// /// /// - public global::OpenAI.MessageObjectRole? Type413 { get; set; } + public global::OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1? Type413 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type414 { get; set; } + public global::OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1Type? Type414 { get; set; } /// /// /// - public global::OpenAI.OneOf? Type415 { get; set; } + public global::OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2? Type415 { get; set; } /// /// /// - public global::OpenAI.MessageContentTextObject? Type416 { get; set; } + public global::OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2Type? Type416 { get; set; } /// /// /// - public global::OpenAI.MessageContentTextObjectType? Type417 { get; set; } + public global::OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2Static? Type417 { get; set; } /// /// /// - public global::OpenAI.MessageContentTextObjectText? Type418 { get; set; } + public global::OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreMetadata? Type418 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type419 { get; set; } + public global::OpenAI.CreateThreadRequestToolResourcesFileSearchVariant1? Type419 { get; set; } /// /// /// - public global::OpenAI.OneOf? Type420 { get; set; } + public global::OpenAI.CreateThreadRequestToolResourcesFileSearchVariant2? Type420 { get; set; } /// /// /// - public global::OpenAI.MessageContentTextAnnotationsFileCitationObject? Type421 { get; set; } + public global::OpenAI.CreateThreadRequestMetadata? Type421 { get; set; } /// /// /// - public global::OpenAI.MessageContentTextAnnotationsFileCitationObjectType? Type422 { get; set; } + public global::OpenAI.AnyOf? Type422 { get; set; } /// /// /// - public global::OpenAI.MessageContentTextAnnotationsFileCitationObjectFileCitation? Type423 { get; set; } + public global::OpenAI.CreateThreadAndRunRequestModel? Type423 { get; set; } /// /// /// - public global::OpenAI.MessageContentTextAnnotationsFilePathObject? Type424 { get; set; } + public global::OpenAI.CreateThreadAndRunRequestToolResources? Type424 { get; set; } /// /// /// - public global::OpenAI.MessageContentTextAnnotationsFilePathObjectType? Type425 { get; set; } + public global::OpenAI.CreateThreadAndRunRequestToolResourcesCodeInterpreter? Type425 { get; set; } /// /// /// - public global::OpenAI.MessageContentTextAnnotationsFilePathObjectFilePath? Type426 { get; set; } + public global::OpenAI.CreateThreadAndRunRequestToolResourcesFileSearch? Type426 { get; set; } /// /// /// - public global::OpenAI.MessageContentRefusalObject? Type427 { get; set; } + public global::OpenAI.CreateThreadAndRunRequestMetadata? Type427 { get; set; } /// /// /// - public global::OpenAI.MessageContentRefusalObjectType? Type428 { get; set; } + public global::OpenAI.ThreadObject? Type428 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type429 { get; set; } + public global::OpenAI.ThreadObjectObject? Type429 { get; set; } /// /// /// - public global::OpenAI.MessageObjectAttachment? Type430 { get; set; } + public global::OpenAI.ThreadObjectToolResources? Type430 { get; set; } /// /// /// - public global::OpenAI.MessageObjectMetadata? Type431 { get; set; } + public global::OpenAI.ThreadObjectToolResourcesCodeInterpreter? Type431 { get; set; } /// /// /// - public global::OpenAI.MessageDeltaObject? Type432 { get; set; } + public global::OpenAI.ThreadObjectToolResourcesFileSearch? Type432 { get; set; } /// /// /// - public global::OpenAI.MessageDeltaObjectObject? Type433 { get; set; } + public global::OpenAI.ThreadObjectMetadata? Type433 { get; set; } /// /// /// - public global::OpenAI.MessageDeltaObjectDelta? Type434 { get; set; } + public global::OpenAI.ModifyThreadRequest? Type434 { get; set; } /// /// /// - public global::OpenAI.MessageDeltaObjectDeltaRole? Type435 { get; set; } + public global::OpenAI.ModifyThreadRequestToolResources? Type435 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type436 { get; set; } + public global::OpenAI.ModifyThreadRequestToolResourcesCodeInterpreter? Type436 { get; set; } /// /// /// - public global::OpenAI.OneOf? Type437 { get; set; } + public global::OpenAI.ModifyThreadRequestToolResourcesFileSearch? Type437 { get; set; } /// /// /// - public global::OpenAI.MessageDeltaContentImageFileObject? Type438 { get; set; } + public global::OpenAI.ModifyThreadRequestMetadata? Type438 { get; set; } /// /// /// - public global::OpenAI.MessageDeltaContentImageFileObjectType? Type439 { get; set; } + public global::OpenAI.DeleteThreadResponse? Type439 { get; set; } /// /// /// - public global::OpenAI.MessageDeltaContentImageFileObjectImageFile? Type440 { get; set; } + public global::OpenAI.DeleteThreadResponseObject? Type440 { get; set; } /// /// /// - public global::OpenAI.MessageDeltaContentImageFileObjectImageFileDetail? Type441 { get; set; } + public global::OpenAI.ListThreadsResponse? Type441 { get; set; } /// /// /// - public global::OpenAI.MessageDeltaContentTextObject? Type442 { get; set; } + public global::System.Collections.Generic.IList? Type442 { get; set; } /// /// /// - public global::OpenAI.MessageDeltaContentTextObjectType? Type443 { get; set; } + public global::OpenAI.MessageObject? Type443 { get; set; } /// /// /// - public global::OpenAI.MessageDeltaContentTextObjectText? Type444 { get; set; } + public global::OpenAI.MessageObjectObject? Type444 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type445 { get; set; } + public global::OpenAI.MessageObjectStatus? Type445 { get; set; } /// /// /// - public global::OpenAI.OneOf? Type446 { get; set; } + public global::OpenAI.MessageObjectIncompleteDetails? Type446 { get; set; } /// /// /// - public global::OpenAI.MessageDeltaContentTextAnnotationsFileCitationObject? Type447 { get; set; } + public global::OpenAI.MessageObjectIncompleteDetailsReason? Type447 { get; set; } /// /// /// - public global::OpenAI.MessageDeltaContentTextAnnotationsFileCitationObjectType? Type448 { get; set; } + public global::OpenAI.MessageObjectRole? Type448 { get; set; } /// /// /// - public global::OpenAI.MessageDeltaContentTextAnnotationsFileCitationObjectFileCitation? Type449 { get; set; } + public global::System.Collections.Generic.IList>? Type449 { get; set; } /// /// /// - public global::OpenAI.MessageDeltaContentTextAnnotationsFilePathObject? Type450 { get; set; } + public global::OpenAI.OneOf? Type450 { get; set; } /// /// /// - public global::OpenAI.MessageDeltaContentTextAnnotationsFilePathObjectType? Type451 { get; set; } + public global::OpenAI.MessageContentTextObject? Type451 { get; set; } /// /// /// - public global::OpenAI.MessageDeltaContentTextAnnotationsFilePathObjectFilePath? Type452 { get; set; } + public global::OpenAI.MessageContentTextObjectType? Type452 { get; set; } /// /// /// - public global::OpenAI.MessageDeltaContentRefusalObject? Type453 { get; set; } + public global::OpenAI.MessageContentTextObjectText? Type453 { get; set; } /// /// /// - public global::OpenAI.MessageDeltaContentRefusalObjectType? Type454 { get; set; } + public global::System.Collections.Generic.IList>? Type454 { get; set; } /// /// /// - public global::OpenAI.MessageDeltaContentImageUrlObject? Type455 { get; set; } + public global::OpenAI.OneOf? Type455 { get; set; } /// /// /// - public global::OpenAI.MessageDeltaContentImageUrlObjectType? Type456 { get; set; } + public global::OpenAI.MessageContentTextAnnotationsFileCitationObject? Type456 { get; set; } /// /// /// - public global::OpenAI.MessageDeltaContentImageUrlObjectImageUrl? Type457 { get; set; } + public global::OpenAI.MessageContentTextAnnotationsFileCitationObjectType? Type457 { get; set; } /// /// /// - public global::OpenAI.MessageDeltaContentImageUrlObjectImageUrlDetail? Type458 { get; set; } + public global::OpenAI.MessageContentTextAnnotationsFileCitationObjectFileCitation? Type458 { get; set; } /// /// /// - public global::OpenAI.ModifyMessageRequest? Type459 { get; set; } + public global::OpenAI.MessageContentTextAnnotationsFilePathObject? Type459 { get; set; } /// /// /// - public global::OpenAI.ModifyMessageRequestMetadata? Type460 { get; set; } + public global::OpenAI.MessageContentTextAnnotationsFilePathObjectType? Type460 { get; set; } /// /// /// - public global::OpenAI.DeleteMessageResponse? Type461 { get; set; } + public global::OpenAI.MessageContentTextAnnotationsFilePathObjectFilePath? Type461 { get; set; } /// /// /// - public global::OpenAI.DeleteMessageResponseObject? Type462 { get; set; } + public global::OpenAI.MessageContentRefusalObject? Type462 { get; set; } /// /// /// - public global::OpenAI.ListMessagesResponse? Type463 { get; set; } + public global::OpenAI.MessageContentRefusalObjectType? Type463 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type464 { get; set; } + public global::System.Collections.Generic.IList? Type464 { get; set; } /// /// /// - public global::OpenAI.RunStepObject? Type465 { get; set; } + public global::OpenAI.MessageObjectAttachment? Type465 { get; set; } /// /// /// - public global::OpenAI.RunStepObjectObject? Type466 { get; set; } + public global::OpenAI.MessageObjectMetadata? Type466 { get; set; } /// /// /// - public global::OpenAI.RunStepObjectType? Type467 { get; set; } + public global::OpenAI.MessageDeltaObject? Type467 { get; set; } /// /// /// - public global::OpenAI.RunStepObjectStatus? Type468 { get; set; } + public global::OpenAI.MessageDeltaObjectObject? Type468 { get; set; } /// /// /// - public global::OpenAI.OneOf? Type469 { get; set; } + public global::OpenAI.MessageDeltaObjectDelta? Type469 { get; set; } /// /// /// - public global::OpenAI.RunStepDetailsMessageCreationObject? Type470 { get; set; } + public global::OpenAI.MessageDeltaObjectDeltaRole? Type470 { get; set; } /// /// /// - public global::OpenAI.RunStepDetailsMessageCreationObjectType? Type471 { get; set; } + public global::System.Collections.Generic.IList>? Type471 { get; set; } /// /// /// - public global::OpenAI.RunStepDetailsMessageCreationObjectMessageCreation? Type472 { get; set; } + public global::OpenAI.OneOf? Type472 { get; set; } /// /// /// - public global::OpenAI.RunStepDetailsToolCallsObject? Type473 { get; set; } + public global::OpenAI.MessageDeltaContentImageFileObject? Type473 { get; set; } /// /// /// - public global::OpenAI.RunStepDetailsToolCallsObjectType? Type474 { get; set; } + public global::OpenAI.MessageDeltaContentImageFileObjectType? Type474 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type475 { get; set; } + public global::OpenAI.MessageDeltaContentImageFileObjectImageFile? Type475 { get; set; } /// /// /// - public global::OpenAI.OneOf? Type476 { get; set; } + public global::OpenAI.MessageDeltaContentImageFileObjectImageFileDetail? Type476 { get; set; } /// /// /// - public global::OpenAI.RunStepDetailsToolCallsCodeObject? Type477 { get; set; } + public global::OpenAI.MessageDeltaContentTextObject? Type477 { get; set; } /// /// /// - public global::OpenAI.RunStepDetailsToolCallsCodeObjectType? Type478 { get; set; } + public global::OpenAI.MessageDeltaContentTextObjectType? Type478 { get; set; } /// /// /// - public global::OpenAI.RunStepDetailsToolCallsCodeObjectCodeInterpreter? Type479 { get; set; } + public global::OpenAI.MessageDeltaContentTextObjectText? Type479 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type480 { get; set; } + public global::System.Collections.Generic.IList>? Type480 { get; set; } /// /// /// - public global::OpenAI.OneOf? Type481 { get; set; } + public global::OpenAI.OneOf? Type481 { get; set; } /// /// /// - public global::OpenAI.RunStepDetailsToolCallsCodeOutputLogsObject? Type482 { get; set; } + public global::OpenAI.MessageDeltaContentTextAnnotationsFileCitationObject? Type482 { get; set; } /// /// /// - public global::OpenAI.RunStepDetailsToolCallsCodeOutputLogsObjectType? Type483 { get; set; } + public global::OpenAI.MessageDeltaContentTextAnnotationsFileCitationObjectType? Type483 { get; set; } /// /// /// - public global::OpenAI.RunStepDetailsToolCallsCodeOutputImageObject? Type484 { get; set; } + public global::OpenAI.MessageDeltaContentTextAnnotationsFileCitationObjectFileCitation? Type484 { get; set; } /// /// /// - public global::OpenAI.RunStepDetailsToolCallsCodeOutputImageObjectType? Type485 { get; set; } + public global::OpenAI.MessageDeltaContentTextAnnotationsFilePathObject? Type485 { get; set; } /// /// /// - public global::OpenAI.RunStepDetailsToolCallsCodeOutputImageObjectImage? Type486 { get; set; } + public global::OpenAI.MessageDeltaContentTextAnnotationsFilePathObjectType? Type486 { get; set; } /// /// /// - public global::OpenAI.RunStepDetailsToolCallsFileSearchObject? Type487 { get; set; } + public global::OpenAI.MessageDeltaContentTextAnnotationsFilePathObjectFilePath? Type487 { get; set; } /// /// /// - public global::OpenAI.RunStepDetailsToolCallsFileSearchObjectType? Type488 { get; set; } + public global::OpenAI.MessageDeltaContentRefusalObject? Type488 { get; set; } /// /// /// - public global::OpenAI.RunStepDetailsToolCallsFileSearchObjectFileSearch? Type489 { get; set; } + public global::OpenAI.MessageDeltaContentRefusalObjectType? Type489 { get; set; } /// /// /// - public global::OpenAI.RunStepDetailsToolCallsFileSearchRankingOptionsObject? Type490 { get; set; } + public global::OpenAI.MessageDeltaContentImageUrlObject? Type490 { get; set; } /// /// /// - public global::OpenAI.RunStepDetailsToolCallsFileSearchRankingOptionsObjectRanker? Type491 { get; set; } + public global::OpenAI.MessageDeltaContentImageUrlObjectType? Type491 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type492 { get; set; } + public global::OpenAI.MessageDeltaContentImageUrlObjectImageUrl? Type492 { get; set; } /// /// /// - public global::OpenAI.RunStepDetailsToolCallsFileSearchResultObject? Type493 { get; set; } + public global::OpenAI.MessageDeltaContentImageUrlObjectImageUrlDetail? Type493 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type494 { get; set; } + public global::OpenAI.ModifyMessageRequest? Type494 { get; set; } /// /// /// - public global::OpenAI.RunStepDetailsToolCallsFileSearchResultObjectContentItem? Type495 { get; set; } + public global::OpenAI.ModifyMessageRequestMetadata? Type495 { get; set; } /// /// /// - public global::OpenAI.RunStepDetailsToolCallsFileSearchResultObjectContentItemType? Type496 { get; set; } + public global::OpenAI.DeleteMessageResponse? Type496 { get; set; } /// /// /// - public global::OpenAI.RunStepDetailsToolCallsFunctionObject? Type497 { get; set; } + public global::OpenAI.DeleteMessageResponseObject? Type497 { get; set; } /// /// /// - public global::OpenAI.RunStepDetailsToolCallsFunctionObjectType? Type498 { get; set; } + public global::OpenAI.ListMessagesResponse? Type498 { get; set; } /// /// /// - public global::OpenAI.RunStepDetailsToolCallsFunctionObjectFunction? Type499 { get; set; } + public global::System.Collections.Generic.IList? Type499 { get; set; } /// /// /// - public global::OpenAI.RunStepObjectLastError? Type500 { get; set; } + public global::OpenAI.RunStepObject? Type500 { get; set; } /// /// /// - public global::OpenAI.RunStepObjectLastErrorCode? Type501 { get; set; } + public global::OpenAI.RunStepObjectObject? Type501 { get; set; } /// /// /// - public global::OpenAI.RunStepObjectMetadata? Type502 { get; set; } + public global::OpenAI.RunStepObjectType? Type502 { get; set; } /// /// /// - public global::OpenAI.RunStepDeltaObject? Type503 { get; set; } + public global::OpenAI.RunStepObjectStatus? Type503 { get; set; } /// /// /// - public global::OpenAI.RunStepDeltaObjectObject? Type504 { get; set; } + public global::OpenAI.OneOf? Type504 { get; set; } /// /// /// - public global::OpenAI.RunStepDeltaObjectDelta? Type505 { get; set; } + public global::OpenAI.RunStepDetailsMessageCreationObject? Type505 { get; set; } /// /// /// - public global::OpenAI.OneOf? Type506 { get; set; } + public global::OpenAI.RunStepDetailsMessageCreationObjectType? Type506 { get; set; } /// /// /// - public global::OpenAI.RunStepDeltaStepDetailsMessageCreationObject? Type507 { get; set; } + public global::OpenAI.RunStepDetailsMessageCreationObjectMessageCreation? Type507 { get; set; } /// /// /// - public global::OpenAI.RunStepDeltaStepDetailsMessageCreationObjectType? Type508 { get; set; } + public global::OpenAI.RunStepDetailsToolCallsObject? Type508 { get; set; } /// /// /// - public global::OpenAI.RunStepDeltaStepDetailsMessageCreationObjectMessageCreation? Type509 { get; set; } + public global::OpenAI.RunStepDetailsToolCallsObjectType? Type509 { get; set; } /// /// /// - public global::OpenAI.RunStepDeltaStepDetailsToolCallsObject? Type510 { get; set; } + public global::System.Collections.Generic.IList>? Type510 { get; set; } /// /// /// - public global::OpenAI.RunStepDeltaStepDetailsToolCallsObjectType? Type511 { get; set; } + public global::OpenAI.OneOf? Type511 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type512 { get; set; } + public global::OpenAI.RunStepDetailsToolCallsCodeObject? Type512 { get; set; } /// /// /// - public global::OpenAI.OneOf? Type513 { get; set; } + public global::OpenAI.RunStepDetailsToolCallsCodeObjectType? Type513 { get; set; } /// /// /// - public global::OpenAI.RunStepDeltaStepDetailsToolCallsCodeObject? Type514 { get; set; } + public global::OpenAI.RunStepDetailsToolCallsCodeObjectCodeInterpreter? Type514 { get; set; } /// /// /// - public global::OpenAI.RunStepDeltaStepDetailsToolCallsCodeObjectType? Type515 { get; set; } + public global::System.Collections.Generic.IList>? Type515 { get; set; } /// /// /// - public global::OpenAI.RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreter? Type516 { get; set; } + public global::OpenAI.OneOf? Type516 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type517 { get; set; } + public global::OpenAI.RunStepDetailsToolCallsCodeOutputLogsObject? Type517 { get; set; } /// /// /// - public global::OpenAI.OneOf? Type518 { get; set; } + public global::OpenAI.RunStepDetailsToolCallsCodeOutputLogsObjectType? Type518 { get; set; } /// /// /// - public global::OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObject? Type519 { get; set; } + public global::OpenAI.RunStepDetailsToolCallsCodeOutputImageObject? Type519 { get; set; } /// /// /// - public global::OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObjectType? Type520 { get; set; } + public global::OpenAI.RunStepDetailsToolCallsCodeOutputImageObjectType? Type520 { get; set; } /// /// /// - public global::OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObject? Type521 { get; set; } + public global::OpenAI.RunStepDetailsToolCallsCodeOutputImageObjectImage? Type521 { get; set; } /// /// /// - public global::OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObjectType? Type522 { get; set; } + public global::OpenAI.RunStepDetailsToolCallsFileSearchObject? Type522 { get; set; } /// /// /// - public global::OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObjectImage? Type523 { get; set; } + public global::OpenAI.RunStepDetailsToolCallsFileSearchObjectType? Type523 { get; set; } /// /// /// - public global::OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObject? Type524 { get; set; } + public global::OpenAI.RunStepDetailsToolCallsFileSearchObjectFileSearch? Type524 { get; set; } /// /// /// - public global::OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObjectType? Type525 { get; set; } + public global::OpenAI.RunStepDetailsToolCallsFileSearchRankingOptionsObject? Type525 { get; set; } /// /// /// - public global::OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObjectFileSearch? Type526 { get; set; } + public global::OpenAI.RunStepDetailsToolCallsFileSearchRankingOptionsObjectRanker? Type526 { get; set; } /// /// /// - public global::OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObject? Type527 { get; set; } + public global::System.Collections.Generic.IList? Type527 { get; set; } /// /// /// - public global::OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObjectType? Type528 { get; set; } + public global::OpenAI.RunStepDetailsToolCallsFileSearchResultObject? Type528 { get; set; } /// /// /// - public global::OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObjectFunction? Type529 { get; set; } + public global::System.Collections.Generic.IList? Type529 { get; set; } /// /// /// - public global::OpenAI.ListRunStepsResponse? Type530 { get; set; } + public global::OpenAI.RunStepDetailsToolCallsFileSearchResultObjectContentItem? Type530 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type531 { get; set; } + public global::OpenAI.RunStepDetailsToolCallsFileSearchResultObjectContentItemType? Type531 { get; set; } /// /// /// - public global::OpenAI.VectorStoreExpirationAfter? Type532 { get; set; } + public global::OpenAI.RunStepDetailsToolCallsFunctionObject? Type532 { get; set; } /// /// /// - public global::OpenAI.VectorStoreExpirationAfterAnchor? Type533 { get; set; } + public global::OpenAI.RunStepDetailsToolCallsFunctionObjectType? Type533 { get; set; } /// /// /// - public global::OpenAI.VectorStoreObject? Type534 { get; set; } + public global::OpenAI.RunStepDetailsToolCallsFunctionObjectFunction? Type534 { get; set; } /// /// /// - public global::OpenAI.VectorStoreObjectObject? Type535 { get; set; } + public global::OpenAI.RunStepObjectLastError? Type535 { get; set; } /// /// /// - public global::OpenAI.VectorStoreObjectFileCounts? Type536 { get; set; } + public global::OpenAI.RunStepObjectLastErrorCode? Type536 { get; set; } /// /// /// - public global::OpenAI.VectorStoreObjectStatus? Type537 { get; set; } + public global::OpenAI.RunStepObjectMetadata? Type537 { get; set; } /// /// /// - public global::OpenAI.VectorStoreObjectMetadata? Type538 { get; set; } + public global::OpenAI.RunStepDeltaObject? Type538 { get; set; } /// /// /// - public global::OpenAI.CreateVectorStoreRequest? Type539 { get; set; } + public global::OpenAI.RunStepDeltaObjectObject? Type539 { get; set; } /// /// /// - public global::OpenAI.OneOf? Type540 { get; set; } + public global::OpenAI.RunStepDeltaObjectDelta? Type540 { get; set; } /// /// /// - public global::OpenAI.AutoChunkingStrategyRequestParam? Type541 { get; set; } + public global::OpenAI.OneOf? Type541 { get; set; } /// /// /// - public global::OpenAI.AutoChunkingStrategyRequestParamType? Type542 { get; set; } + public global::OpenAI.RunStepDeltaStepDetailsMessageCreationObject? Type542 { get; set; } /// /// /// - public global::OpenAI.StaticChunkingStrategyRequestParam? Type543 { get; set; } + public global::OpenAI.RunStepDeltaStepDetailsMessageCreationObjectType? Type543 { get; set; } /// /// /// - public global::OpenAI.StaticChunkingStrategyRequestParamType? Type544 { get; set; } + public global::OpenAI.RunStepDeltaStepDetailsMessageCreationObjectMessageCreation? Type544 { get; set; } /// /// /// - public global::OpenAI.StaticChunkingStrategy? Type545 { get; set; } + public global::OpenAI.RunStepDeltaStepDetailsToolCallsObject? Type545 { get; set; } /// /// /// - public global::OpenAI.CreateVectorStoreRequestMetadata? Type546 { get; set; } + public global::OpenAI.RunStepDeltaStepDetailsToolCallsObjectType? Type546 { get; set; } /// /// /// - public global::OpenAI.UpdateVectorStoreRequest? Type547 { get; set; } + public global::System.Collections.Generic.IList>? Type547 { get; set; } /// /// /// - public global::OpenAI.UpdateVectorStoreRequestMetadata? Type548 { get; set; } + public global::OpenAI.OneOf? Type548 { get; set; } /// /// /// - public global::OpenAI.ListVectorStoresResponse? Type549 { get; set; } + public global::OpenAI.RunStepDeltaStepDetailsToolCallsCodeObject? Type549 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type550 { get; set; } + public global::OpenAI.RunStepDeltaStepDetailsToolCallsCodeObjectType? Type550 { get; set; } /// /// /// - public global::OpenAI.DeleteVectorStoreResponse? Type551 { get; set; } + public global::OpenAI.RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreter? Type551 { get; set; } /// /// /// - public global::OpenAI.DeleteVectorStoreResponseObject? Type552 { get; set; } + public global::System.Collections.Generic.IList>? Type552 { get; set; } /// /// /// - public global::OpenAI.VectorStoreFileObject? Type553 { get; set; } + public global::OpenAI.OneOf? Type553 { get; set; } /// /// /// - public global::OpenAI.VectorStoreFileObjectObject? Type554 { get; set; } + public global::OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObject? Type554 { get; set; } /// /// /// - public global::OpenAI.VectorStoreFileObjectStatus? Type555 { get; set; } + public global::OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObjectType? Type555 { get; set; } /// /// /// - public global::OpenAI.VectorStoreFileObjectLastError? Type556 { get; set; } + public global::OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObject? Type556 { get; set; } /// /// /// - public global::OpenAI.VectorStoreFileObjectLastErrorCode? Type557 { get; set; } + public global::OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObjectType? Type557 { get; set; } /// /// /// - public global::OpenAI.OneOf? Type558 { get; set; } + public global::OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObjectImage? Type558 { get; set; } /// /// /// - public global::OpenAI.StaticChunkingStrategyResponseParam? Type559 { get; set; } + public global::OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObject? Type559 { get; set; } /// /// /// - public global::OpenAI.StaticChunkingStrategyResponseParamType? Type560 { get; set; } + public global::OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObjectType? Type560 { get; set; } /// /// /// - public global::OpenAI.OtherChunkingStrategyResponseParam? Type561 { get; set; } + public global::OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObjectFileSearch? Type561 { get; set; } /// /// /// - public global::OpenAI.OtherChunkingStrategyResponseParamType? Type562 { get; set; } + public global::OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObject? Type562 { get; set; } /// /// /// - public global::OpenAI.ChunkingStrategyRequestParam? Type563 { get; set; } + public global::OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObjectType? Type563 { get; set; } /// /// /// - public global::OpenAI.CreateVectorStoreFileRequest? Type564 { get; set; } + public global::OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObjectFunction? Type564 { get; set; } /// /// /// - public global::OpenAI.ListVectorStoreFilesResponse? Type565 { get; set; } + public global::OpenAI.ListRunStepsResponse? Type565 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type566 { get; set; } + public global::System.Collections.Generic.IList? Type566 { get; set; } /// /// /// - public global::OpenAI.DeleteVectorStoreFileResponse? Type567 { get; set; } + public global::OpenAI.VectorStoreExpirationAfter? Type567 { get; set; } /// /// /// - public global::OpenAI.DeleteVectorStoreFileResponseObject? Type568 { get; set; } + public global::OpenAI.VectorStoreExpirationAfterAnchor? Type568 { get; set; } /// /// /// - public global::OpenAI.VectorStoreFileBatchObject? Type569 { get; set; } + public global::OpenAI.VectorStoreObject? Type569 { get; set; } /// /// /// - public global::OpenAI.VectorStoreFileBatchObjectObject? Type570 { get; set; } + public global::OpenAI.VectorStoreObjectObject? Type570 { get; set; } /// /// /// - public global::OpenAI.VectorStoreFileBatchObjectStatus? Type571 { get; set; } + public global::OpenAI.VectorStoreObjectFileCounts? Type571 { get; set; } /// /// /// - public global::OpenAI.VectorStoreFileBatchObjectFileCounts? Type572 { get; set; } + public global::OpenAI.VectorStoreObjectStatus? Type572 { get; set; } /// /// /// - public global::OpenAI.CreateVectorStoreFileBatchRequest? Type573 { get; set; } + public global::OpenAI.VectorStoreObjectMetadata? Type573 { get; set; } /// /// /// - public global::OpenAI.AssistantStreamEvent? Type574 { get; set; } + public global::OpenAI.CreateVectorStoreRequest? Type574 { get; set; } /// /// /// - public global::OpenAI.ThreadStreamEvent? Type575 { get; set; } + public global::OpenAI.OneOf? Type575 { get; set; } /// /// /// - public global::OpenAI.ThreadStreamEventVariant1? Type576 { get; set; } + public global::OpenAI.AutoChunkingStrategyRequestParam? Type576 { get; set; } /// /// /// - public global::OpenAI.ThreadStreamEventVariant1Event? Type577 { get; set; } + public global::OpenAI.AutoChunkingStrategyRequestParamType? Type577 { get; set; } /// /// /// - public global::OpenAI.RunStreamEvent? Type578 { get; set; } + public global::OpenAI.StaticChunkingStrategyRequestParam? Type578 { get; set; } /// /// /// - public global::OpenAI.RunStreamEventVariant1? Type579 { get; set; } + public global::OpenAI.StaticChunkingStrategyRequestParamType? Type579 { get; set; } /// /// /// - public global::OpenAI.RunStreamEventVariant1Event? Type580 { get; set; } + public global::OpenAI.StaticChunkingStrategy? Type580 { get; set; } /// /// /// - public global::OpenAI.RunStreamEventVariant2? Type581 { get; set; } + public global::OpenAI.CreateVectorStoreRequestMetadata? Type581 { get; set; } /// /// /// - public global::OpenAI.RunStreamEventVariant2Event? Type582 { get; set; } + public global::OpenAI.UpdateVectorStoreRequest? Type582 { get; set; } /// /// /// - public global::OpenAI.RunStreamEventVariant3? Type583 { get; set; } + public global::OpenAI.UpdateVectorStoreRequestMetadata? Type583 { get; set; } /// /// /// - public global::OpenAI.RunStreamEventVariant3Event? Type584 { get; set; } + public global::OpenAI.ListVectorStoresResponse? Type584 { get; set; } /// /// /// - public global::OpenAI.RunStreamEventVariant4? Type585 { get; set; } + public global::System.Collections.Generic.IList? Type585 { get; set; } /// /// /// - public global::OpenAI.RunStreamEventVariant4Event? Type586 { get; set; } + public global::OpenAI.DeleteVectorStoreResponse? Type586 { get; set; } /// /// /// - public global::OpenAI.RunStreamEventVariant5? Type587 { get; set; } + public global::OpenAI.DeleteVectorStoreResponseObject? Type587 { get; set; } /// /// /// - public global::OpenAI.RunStreamEventVariant5Event? Type588 { get; set; } + public global::OpenAI.VectorStoreFileObject? Type588 { get; set; } /// /// /// - public global::OpenAI.RunStreamEventVariant6? Type589 { get; set; } + public global::OpenAI.VectorStoreFileObjectObject? Type589 { get; set; } /// /// /// - public global::OpenAI.RunStreamEventVariant6Event? Type590 { get; set; } + public global::OpenAI.VectorStoreFileObjectStatus? Type590 { get; set; } /// /// /// - public global::OpenAI.RunStreamEventVariant7? Type591 { get; set; } + public global::OpenAI.VectorStoreFileObjectLastError? Type591 { get; set; } /// /// /// - public global::OpenAI.RunStreamEventVariant7Event? Type592 { get; set; } + public global::OpenAI.VectorStoreFileObjectLastErrorCode? Type592 { get; set; } /// /// /// - public global::OpenAI.RunStreamEventVariant8? Type593 { get; set; } + public global::OpenAI.OneOf? Type593 { get; set; } /// /// /// - public global::OpenAI.RunStreamEventVariant8Event? Type594 { get; set; } + public global::OpenAI.StaticChunkingStrategyResponseParam? Type594 { get; set; } /// /// /// - public global::OpenAI.RunStreamEventVariant9? Type595 { get; set; } + public global::OpenAI.StaticChunkingStrategyResponseParamType? Type595 { get; set; } /// /// /// - public global::OpenAI.RunStreamEventVariant9Event? Type596 { get; set; } + public global::OpenAI.OtherChunkingStrategyResponseParam? Type596 { get; set; } /// /// /// - public global::OpenAI.RunStreamEventVariant10? Type597 { get; set; } + public global::OpenAI.OtherChunkingStrategyResponseParamType? Type597 { get; set; } /// /// /// - public global::OpenAI.RunStreamEventVariant10Event? Type598 { get; set; } + public global::OpenAI.ChunkingStrategyRequestParam? Type598 { get; set; } /// /// /// - public global::OpenAI.RunStepStreamEvent? Type599 { get; set; } + public global::OpenAI.CreateVectorStoreFileRequest? Type599 { get; set; } /// /// /// - public global::OpenAI.RunStepStreamEventVariant1? Type600 { get; set; } + public global::OpenAI.ListVectorStoreFilesResponse? Type600 { get; set; } /// /// /// - public global::OpenAI.RunStepStreamEventVariant1Event? Type601 { get; set; } + public global::System.Collections.Generic.IList? Type601 { get; set; } /// /// /// - public global::OpenAI.RunStepStreamEventVariant2? Type602 { get; set; } + public global::OpenAI.DeleteVectorStoreFileResponse? Type602 { get; set; } /// /// /// - public global::OpenAI.RunStepStreamEventVariant2Event? Type603 { get; set; } + public global::OpenAI.DeleteVectorStoreFileResponseObject? Type603 { get; set; } /// /// /// - public global::OpenAI.RunStepStreamEventVariant3? Type604 { get; set; } + public global::OpenAI.VectorStoreFileBatchObject? Type604 { get; set; } /// /// /// - public global::OpenAI.RunStepStreamEventVariant3Event? Type605 { get; set; } + public global::OpenAI.VectorStoreFileBatchObjectObject? Type605 { get; set; } /// /// /// - public global::OpenAI.RunStepStreamEventVariant4? Type606 { get; set; } + public global::OpenAI.VectorStoreFileBatchObjectStatus? Type606 { get; set; } /// /// /// - public global::OpenAI.RunStepStreamEventVariant4Event? Type607 { get; set; } + public global::OpenAI.VectorStoreFileBatchObjectFileCounts? Type607 { get; set; } /// /// /// - public global::OpenAI.RunStepStreamEventVariant5? Type608 { get; set; } + public global::OpenAI.CreateVectorStoreFileBatchRequest? Type608 { get; set; } /// /// /// - public global::OpenAI.RunStepStreamEventVariant5Event? Type609 { get; set; } + public global::OpenAI.AssistantStreamEvent? Type609 { get; set; } /// /// /// - public global::OpenAI.RunStepStreamEventVariant6? Type610 { get; set; } + public global::OpenAI.ThreadStreamEvent? Type610 { get; set; } /// /// /// - public global::OpenAI.RunStepStreamEventVariant6Event? Type611 { get; set; } + public global::OpenAI.ThreadStreamEventVariant1? Type611 { get; set; } /// /// /// - public global::OpenAI.RunStepStreamEventVariant7? Type612 { get; set; } + public global::OpenAI.ThreadStreamEventVariant1Event? Type612 { get; set; } /// /// /// - public global::OpenAI.RunStepStreamEventVariant7Event? Type613 { get; set; } + public global::OpenAI.RunStreamEvent? Type613 { get; set; } /// /// /// - public global::OpenAI.MessageStreamEvent? Type614 { get; set; } + public global::OpenAI.RunStreamEventVariant1? Type614 { get; set; } /// /// /// - public global::OpenAI.MessageStreamEventVariant1? Type615 { get; set; } + public global::OpenAI.RunStreamEventVariant1Event? Type615 { get; set; } /// /// /// - public global::OpenAI.MessageStreamEventVariant1Event? Type616 { get; set; } + public global::OpenAI.RunStreamEventVariant2? Type616 { get; set; } /// /// /// - public global::OpenAI.MessageStreamEventVariant2? Type617 { get; set; } + public global::OpenAI.RunStreamEventVariant2Event? Type617 { get; set; } /// /// /// - public global::OpenAI.MessageStreamEventVariant2Event? Type618 { get; set; } + public global::OpenAI.RunStreamEventVariant3? Type618 { get; set; } /// /// /// - public global::OpenAI.MessageStreamEventVariant3? Type619 { get; set; } + public global::OpenAI.RunStreamEventVariant3Event? Type619 { get; set; } /// /// /// - public global::OpenAI.MessageStreamEventVariant3Event? Type620 { get; set; } + public global::OpenAI.RunStreamEventVariant4? Type620 { get; set; } /// /// /// - public global::OpenAI.MessageStreamEventVariant4? Type621 { get; set; } + public global::OpenAI.RunStreamEventVariant4Event? Type621 { get; set; } /// /// /// - public global::OpenAI.MessageStreamEventVariant4Event? Type622 { get; set; } + public global::OpenAI.RunStreamEventVariant5? Type622 { get; set; } /// /// /// - public global::OpenAI.MessageStreamEventVariant5? Type623 { get; set; } + public global::OpenAI.RunStreamEventVariant5Event? Type623 { get; set; } /// /// /// - public global::OpenAI.MessageStreamEventVariant5Event? Type624 { get; set; } + public global::OpenAI.RunStreamEventVariant6? Type624 { get; set; } /// /// /// - public global::OpenAI.ErrorEvent? Type625 { get; set; } + public global::OpenAI.RunStreamEventVariant6Event? Type625 { get; set; } /// /// /// - public global::OpenAI.ErrorEventEvent? Type626 { get; set; } + public global::OpenAI.RunStreamEventVariant7? Type626 { get; set; } /// /// /// - public global::OpenAI.DoneEvent? Type627 { get; set; } + public global::OpenAI.RunStreamEventVariant7Event? Type627 { get; set; } /// /// /// - public global::OpenAI.DoneEventEvent? Type628 { get; set; } + public global::OpenAI.RunStreamEventVariant8? Type628 { get; set; } /// /// /// - public global::OpenAI.DoneEventData? Type629 { get; set; } + public global::OpenAI.RunStreamEventVariant8Event? Type629 { get; set; } /// /// /// - public global::OpenAI.Batch? Type630 { get; set; } + public global::OpenAI.RunStreamEventVariant9? Type630 { get; set; } /// /// /// - public global::OpenAI.BatchObject? Type631 { get; set; } + public global::OpenAI.RunStreamEventVariant9Event? Type631 { get; set; } /// /// /// - public global::OpenAI.BatchErrors? Type632 { get; set; } + public global::OpenAI.RunStreamEventVariant10? Type632 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type633 { get; set; } + public global::OpenAI.RunStreamEventVariant10Event? Type633 { get; set; } /// /// /// - public global::OpenAI.BatchErrorsDataItem? Type634 { get; set; } + public global::OpenAI.RunStepStreamEvent? Type634 { get; set; } /// /// /// - public global::OpenAI.BatchStatus? Type635 { get; set; } + public global::OpenAI.RunStepStreamEventVariant1? Type635 { get; set; } /// /// /// - public global::OpenAI.BatchRequestCounts? Type636 { get; set; } + public global::OpenAI.RunStepStreamEventVariant1Event? Type636 { get; set; } /// /// /// - public global::OpenAI.BatchMetadata? Type637 { get; set; } + public global::OpenAI.RunStepStreamEventVariant2? Type637 { get; set; } /// /// /// - public global::OpenAI.BatchRequestInput? Type638 { get; set; } + public global::OpenAI.RunStepStreamEventVariant2Event? Type638 { get; set; } /// /// /// - public global::OpenAI.BatchRequestInputMethod? Type639 { get; set; } + public global::OpenAI.RunStepStreamEventVariant3? Type639 { get; set; } /// /// /// - public global::OpenAI.BatchRequestOutput? Type640 { get; set; } + public global::OpenAI.RunStepStreamEventVariant3Event? Type640 { get; set; } /// /// /// - public global::OpenAI.BatchRequestOutputResponse? Type641 { get; set; } + public global::OpenAI.RunStepStreamEventVariant4? Type641 { get; set; } /// /// /// - public global::OpenAI.BatchRequestOutputResponseBody? Type642 { get; set; } + public global::OpenAI.RunStepStreamEventVariant4Event? Type642 { get; set; } /// /// /// - public global::OpenAI.BatchRequestOutputError? Type643 { get; set; } + public global::OpenAI.RunStepStreamEventVariant5? Type643 { get; set; } /// /// /// - public global::OpenAI.ListBatchesResponse? Type644 { get; set; } + public global::OpenAI.RunStepStreamEventVariant5Event? Type644 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type645 { get; set; } + public global::OpenAI.RunStepStreamEventVariant6? Type645 { get; set; } /// /// /// - public global::OpenAI.ListBatchesResponseObject? Type646 { get; set; } + public global::OpenAI.RunStepStreamEventVariant6Event? Type646 { get; set; } /// /// /// - public global::OpenAI.AuditLogActorServiceAccount? Type647 { get; set; } + public global::OpenAI.RunStepStreamEventVariant7? Type647 { get; set; } /// /// /// - public global::OpenAI.AuditLogActorUser? Type648 { get; set; } + public global::OpenAI.RunStepStreamEventVariant7Event? Type648 { get; set; } /// /// /// - public global::OpenAI.AuditLogActorApiKey? Type649 { get; set; } + public global::OpenAI.MessageStreamEvent? Type649 { get; set; } /// /// /// - public global::OpenAI.AuditLogActorApiKeyType? Type650 { get; set; } + public global::OpenAI.MessageStreamEventVariant1? Type650 { get; set; } /// /// /// - public global::OpenAI.AuditLogActorSession? Type651 { get; set; } + public global::OpenAI.MessageStreamEventVariant1Event? Type651 { get; set; } /// /// /// - public global::OpenAI.AuditLogActor? Type652 { get; set; } + public global::OpenAI.MessageStreamEventVariant2? Type652 { get; set; } /// /// /// - public global::OpenAI.AuditLogActorType? Type653 { get; set; } + public global::OpenAI.MessageStreamEventVariant2Event? Type653 { get; set; } /// /// /// - public global::OpenAI.AuditLogEventType? Type654 { get; set; } + public global::OpenAI.MessageStreamEventVariant3? Type654 { get; set; } /// /// /// - public global::OpenAI.AuditLog? Type655 { get; set; } + public global::OpenAI.MessageStreamEventVariant3Event? Type655 { get; set; } /// /// /// - public global::OpenAI.AuditLogProject? Type656 { get; set; } + public global::OpenAI.MessageStreamEventVariant4? Type656 { get; set; } /// /// /// - public global::OpenAI.AuditLogApiKeyCreated? Type657 { get; set; } + public global::OpenAI.MessageStreamEventVariant4Event? Type657 { get; set; } /// /// /// - public global::OpenAI.AuditLogApiKeyCreatedData? Type658 { get; set; } + public global::OpenAI.MessageStreamEventVariant5? Type658 { get; set; } /// /// /// - public global::OpenAI.AuditLogApiKeyUpdated? Type659 { get; set; } + public global::OpenAI.MessageStreamEventVariant5Event? Type659 { get; set; } /// /// /// - public global::OpenAI.AuditLogApiKeyUpdatedChangesRequested? Type660 { get; set; } + public global::OpenAI.ErrorEvent? Type660 { get; set; } /// /// /// - public global::OpenAI.AuditLogApiKeyDeleted? Type661 { get; set; } + public global::OpenAI.ErrorEventEvent? Type661 { get; set; } /// /// /// - public global::OpenAI.AuditLogInviteSent? Type662 { get; set; } + public global::OpenAI.DoneEvent? Type662 { get; set; } /// /// /// - public global::OpenAI.AuditLogInviteSentData? Type663 { get; set; } + public global::OpenAI.DoneEventEvent? Type663 { get; set; } /// /// /// - public global::OpenAI.AuditLogInviteAccepted? Type664 { get; set; } + public global::OpenAI.DoneEventData? Type664 { get; set; } /// /// /// - public global::OpenAI.AuditLogInviteDeleted? Type665 { get; set; } + public global::OpenAI.Batch? Type665 { get; set; } /// /// /// - public global::OpenAI.AuditLogLoginFailed? Type666 { get; set; } + public global::OpenAI.BatchObject? Type666 { get; set; } /// /// /// - public global::OpenAI.AuditLogLogoutFailed? Type667 { get; set; } + public global::OpenAI.BatchErrors? Type667 { get; set; } /// /// /// - public global::OpenAI.AuditLogOrganizationUpdated? Type668 { get; set; } + public global::System.Collections.Generic.IList? Type668 { get; set; } /// /// /// - public global::OpenAI.AuditLogOrganizationUpdatedChangesRequested? Type669 { get; set; } + public global::OpenAI.BatchErrorsDataItem? Type669 { get; set; } /// /// /// - public global::OpenAI.AuditLogOrganizationUpdatedChangesRequestedSettings? Type670 { get; set; } + public global::OpenAI.BatchStatus? Type670 { get; set; } /// /// /// - public global::OpenAI.AuditLogProjectCreated? Type671 { get; set; } + public global::OpenAI.BatchRequestCounts? Type671 { get; set; } /// /// /// - public global::OpenAI.AuditLogProjectCreatedData? Type672 { get; set; } + public global::OpenAI.BatchMetadata? Type672 { get; set; } /// /// /// - public global::OpenAI.AuditLogProjectUpdated? Type673 { get; set; } + public global::OpenAI.BatchRequestInput? Type673 { get; set; } /// /// /// - public global::OpenAI.AuditLogProjectUpdatedChangesRequested? Type674 { get; set; } + public global::OpenAI.BatchRequestInputMethod? Type674 { get; set; } /// /// /// - public global::OpenAI.AuditLogProjectArchived? Type675 { get; set; } + public global::OpenAI.BatchRequestOutput? Type675 { get; set; } /// /// /// - public global::OpenAI.AuditLogServiceAccountCreated? Type676 { get; set; } + public global::OpenAI.BatchRequestOutputResponse? Type676 { get; set; } /// /// /// - public global::OpenAI.AuditLogServiceAccountCreatedData? Type677 { get; set; } + public global::OpenAI.BatchRequestOutputResponseBody? Type677 { get; set; } /// /// /// - public global::OpenAI.AuditLogServiceAccountUpdated? Type678 { get; set; } + public global::OpenAI.BatchRequestOutputError? Type678 { get; set; } /// /// /// - public global::OpenAI.AuditLogServiceAccountUpdatedChangesRequested? Type679 { get; set; } + public global::OpenAI.ListBatchesResponse? Type679 { get; set; } /// /// /// - public global::OpenAI.AuditLogServiceAccountDeleted? Type680 { get; set; } + public global::System.Collections.Generic.IList? Type680 { get; set; } /// /// /// - public global::OpenAI.AuditLogUserAdded? Type681 { get; set; } + public global::OpenAI.ListBatchesResponseObject? Type681 { get; set; } /// /// /// - public global::OpenAI.AuditLogUserAddedData? Type682 { get; set; } + public global::OpenAI.AuditLogActorServiceAccount? Type682 { get; set; } /// /// /// - public global::OpenAI.AuditLogUserUpdated? Type683 { get; set; } + public global::OpenAI.AuditLogActorUser? Type683 { get; set; } /// /// /// - public global::OpenAI.AuditLogUserUpdatedChangesRequested? Type684 { get; set; } + public global::OpenAI.AuditLogActorApiKey? Type684 { get; set; } /// /// /// - public global::OpenAI.AuditLogUserDeleted? Type685 { get; set; } + public global::OpenAI.AuditLogActorApiKeyType? Type685 { get; set; } /// /// /// - public global::OpenAI.ListAuditLogsResponse? Type686 { get; set; } + public global::OpenAI.AuditLogActorSession? Type686 { get; set; } /// /// /// - public global::OpenAI.ListAuditLogsResponseObject? Type687 { get; set; } + public global::OpenAI.AuditLogActor? Type687 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type688 { get; set; } + public global::OpenAI.AuditLogActorType? Type688 { get; set; } /// /// /// - public global::OpenAI.Invite? Type689 { get; set; } + public global::OpenAI.AuditLogEventType? Type689 { get; set; } /// /// /// - public global::OpenAI.InviteObject? Type690 { get; set; } + public global::OpenAI.AuditLog? Type690 { get; set; } /// /// /// - public global::OpenAI.InviteRole? Type691 { get; set; } + public global::OpenAI.AuditLogProject? Type691 { get; set; } /// /// /// - public global::OpenAI.InviteStatus? Type692 { get; set; } + public global::OpenAI.AuditLogApiKeyCreated? Type692 { get; set; } /// /// /// - public global::OpenAI.InviteListResponse? Type693 { get; set; } + public global::OpenAI.AuditLogApiKeyCreatedData? Type693 { get; set; } /// /// /// - public global::OpenAI.InviteListResponseObject? Type694 { get; set; } + public global::OpenAI.AuditLogApiKeyUpdated? Type694 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type695 { get; set; } + public global::OpenAI.AuditLogApiKeyUpdatedChangesRequested? Type695 { get; set; } /// /// /// - public global::OpenAI.InviteRequest? Type696 { get; set; } + public global::OpenAI.AuditLogApiKeyDeleted? Type696 { get; set; } /// /// /// - public global::OpenAI.InviteRequestRole? Type697 { get; set; } + public global::OpenAI.AuditLogInviteSent? Type697 { get; set; } /// /// /// - public global::OpenAI.InviteDeleteResponse? Type698 { get; set; } + public global::OpenAI.AuditLogInviteSentData? Type698 { get; set; } /// /// /// - public global::OpenAI.InviteDeleteResponseObject? Type699 { get; set; } + public global::OpenAI.AuditLogInviteAccepted? Type699 { get; set; } /// /// /// - public global::OpenAI.User? Type700 { get; set; } + public global::OpenAI.AuditLogInviteDeleted? Type700 { get; set; } /// /// /// - public global::OpenAI.UserObject? Type701 { get; set; } + public global::OpenAI.AuditLogLoginFailed? Type701 { get; set; } /// /// /// - public global::OpenAI.UserRole? Type702 { get; set; } + public global::OpenAI.AuditLogLogoutFailed? Type702 { get; set; } /// /// /// - public global::OpenAI.UserListResponse? Type703 { get; set; } + public global::OpenAI.AuditLogOrganizationUpdated? Type703 { get; set; } /// /// /// - public global::OpenAI.UserListResponseObject? Type704 { get; set; } + public global::OpenAI.AuditLogOrganizationUpdatedChangesRequested? Type704 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type705 { get; set; } + public global::OpenAI.AuditLogOrganizationUpdatedChangesRequestedSettings? Type705 { get; set; } /// /// /// - public global::OpenAI.UserRoleUpdateRequest? Type706 { get; set; } + public global::OpenAI.AuditLogProjectCreated? Type706 { get; set; } /// /// /// - public global::OpenAI.UserRoleUpdateRequestRole? Type707 { get; set; } + public global::OpenAI.AuditLogProjectCreatedData? Type707 { get; set; } /// /// /// - public global::OpenAI.UserDeleteResponse? Type708 { get; set; } + public global::OpenAI.AuditLogProjectUpdated? Type708 { get; set; } /// /// /// - public global::OpenAI.UserDeleteResponseObject? Type709 { get; set; } + public global::OpenAI.AuditLogProjectUpdatedChangesRequested? Type709 { get; set; } /// /// /// - public global::OpenAI.Project? Type710 { get; set; } + public global::OpenAI.AuditLogProjectArchived? Type710 { get; set; } /// /// /// - public global::OpenAI.ProjectObject? Type711 { get; set; } + public global::OpenAI.AuditLogServiceAccountCreated? Type711 { get; set; } /// /// /// - public global::OpenAI.ProjectStatus? Type712 { get; set; } + public global::OpenAI.AuditLogServiceAccountCreatedData? Type712 { get; set; } /// /// /// - public global::OpenAI.ProjectListResponse? Type713 { get; set; } + public global::OpenAI.AuditLogServiceAccountUpdated? Type713 { get; set; } /// /// /// - public global::OpenAI.ProjectListResponseObject? Type714 { get; set; } + public global::OpenAI.AuditLogServiceAccountUpdatedChangesRequested? Type714 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type715 { get; set; } + public global::OpenAI.AuditLogServiceAccountDeleted? Type715 { get; set; } /// /// /// - public global::OpenAI.ProjectCreateRequest? Type716 { get; set; } + public global::OpenAI.AuditLogUserAdded? Type716 { get; set; } /// /// /// - public global::OpenAI.ProjectUpdateRequest? Type717 { get; set; } + public global::OpenAI.AuditLogUserAddedData? Type717 { get; set; } /// /// /// - public global::OpenAI.DefaultProjectErrorResponse? Type718 { get; set; } + public global::OpenAI.AuditLogUserUpdated? Type718 { get; set; } /// /// /// - public global::OpenAI.ProjectUser? Type719 { get; set; } + public global::OpenAI.AuditLogUserUpdatedChangesRequested? Type719 { get; set; } /// /// /// - public global::OpenAI.ProjectUserObject? Type720 { get; set; } + public global::OpenAI.AuditLogUserDeleted? Type720 { get; set; } /// /// /// - public global::OpenAI.ProjectUserRole? Type721 { get; set; } + public global::OpenAI.ListAuditLogsResponse? Type721 { get; set; } /// /// /// - public global::OpenAI.ProjectUserListResponse? Type722 { get; set; } + public global::OpenAI.ListAuditLogsResponseObject? Type722 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type723 { get; set; } + public global::System.Collections.Generic.IList? Type723 { get; set; } /// /// /// - public global::OpenAI.ProjectUserCreateRequest? Type724 { get; set; } + public global::OpenAI.Invite? Type724 { get; set; } /// /// /// - public global::OpenAI.ProjectUserCreateRequestRole? Type725 { get; set; } + public global::OpenAI.InviteObject? Type725 { get; set; } /// /// /// - public global::OpenAI.ProjectUserUpdateRequest? Type726 { get; set; } + public global::OpenAI.InviteRole? Type726 { get; set; } /// /// /// - public global::OpenAI.ProjectUserUpdateRequestRole? Type727 { get; set; } + public global::OpenAI.InviteStatus? Type727 { get; set; } /// /// /// - public global::OpenAI.ProjectUserDeleteResponse? Type728 { get; set; } + public global::OpenAI.InviteListResponse? Type728 { get; set; } /// /// /// - public global::OpenAI.ProjectUserDeleteResponseObject? Type729 { get; set; } + public global::OpenAI.InviteListResponseObject? Type729 { get; set; } /// /// /// - public global::OpenAI.ProjectServiceAccount? Type730 { get; set; } + public global::System.Collections.Generic.IList? Type730 { get; set; } /// /// /// - public global::OpenAI.ProjectServiceAccountObject? Type731 { get; set; } + public global::OpenAI.InviteRequest? Type731 { get; set; } /// /// /// - public global::OpenAI.ProjectServiceAccountRole? Type732 { get; set; } + public global::OpenAI.InviteRequestRole? Type732 { get; set; } /// /// /// - public global::OpenAI.ProjectServiceAccountListResponse? Type733 { get; set; } + public global::OpenAI.InviteDeleteResponse? Type733 { get; set; } /// /// /// - public global::OpenAI.ProjectServiceAccountListResponseObject? Type734 { get; set; } + public global::OpenAI.InviteDeleteResponseObject? Type734 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type735 { get; set; } + public global::OpenAI.User? Type735 { get; set; } /// /// /// - public global::OpenAI.ProjectServiceAccountCreateRequest? Type736 { get; set; } + public global::OpenAI.UserObject? Type736 { get; set; } /// /// /// - public global::OpenAI.ProjectServiceAccountCreateResponse? Type737 { get; set; } + public global::OpenAI.UserRole? Type737 { get; set; } /// /// /// - public global::OpenAI.ProjectServiceAccountCreateResponseObject? Type738 { get; set; } + public global::OpenAI.UserListResponse? Type738 { get; set; } /// /// /// - public global::OpenAI.ProjectServiceAccountCreateResponseRole? Type739 { get; set; } + public global::OpenAI.UserListResponseObject? Type739 { get; set; } /// /// /// - public global::OpenAI.ProjectServiceAccountApiKey? Type740 { get; set; } + public global::System.Collections.Generic.IList? Type740 { get; set; } /// /// /// - public global::OpenAI.ProjectServiceAccountApiKeyObject? Type741 { get; set; } + public global::OpenAI.UserRoleUpdateRequest? Type741 { get; set; } /// /// /// - public global::OpenAI.ProjectServiceAccountDeleteResponse? Type742 { get; set; } + public global::OpenAI.UserRoleUpdateRequestRole? Type742 { get; set; } /// /// /// - public global::OpenAI.ProjectServiceAccountDeleteResponseObject? Type743 { get; set; } + public global::OpenAI.UserDeleteResponse? Type743 { get; set; } /// /// /// - public global::OpenAI.ProjectApiKey? Type744 { get; set; } + public global::OpenAI.UserDeleteResponseObject? Type744 { get; set; } /// /// /// - public global::OpenAI.ProjectApiKeyObject? Type745 { get; set; } + public global::OpenAI.Project? Type745 { get; set; } /// /// /// - public global::OpenAI.ProjectApiKeyOwner? Type746 { get; set; } + public global::OpenAI.ProjectObject? Type746 { get; set; } /// /// /// - public global::OpenAI.ProjectApiKeyOwnerType? Type747 { get; set; } + public global::OpenAI.ProjectStatus? Type747 { get; set; } /// /// /// - public global::OpenAI.ProjectApiKeyListResponse? Type748 { get; set; } + public global::OpenAI.ProjectListResponse? Type748 { get; set; } /// /// /// - public global::OpenAI.ProjectApiKeyListResponseObject? Type749 { get; set; } + public global::OpenAI.ProjectListResponseObject? Type749 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type750 { get; set; } + public global::System.Collections.Generic.IList? Type750 { get; set; } /// /// /// - public global::OpenAI.ProjectApiKeyDeleteResponse? Type751 { get; set; } + public global::OpenAI.ProjectCreateRequest? Type751 { get; set; } /// /// /// - public global::OpenAI.ProjectApiKeyDeleteResponseObject? Type752 { get; set; } + public global::OpenAI.ProjectUpdateRequest? Type752 { get; set; } /// /// /// - public global::OpenAI.CreateBatchRequest? Type753 { get; set; } + public global::OpenAI.DefaultProjectErrorResponse? Type753 { get; set; } /// /// /// - public global::OpenAI.CreateBatchRequestEndpoint? Type754 { get; set; } + public global::OpenAI.ProjectUser? Type754 { get; set; } /// /// /// - public global::OpenAI.CreateBatchRequestCompletionWindow? Type755 { get; set; } + public global::OpenAI.ProjectUserObject? Type755 { get; set; } /// /// /// - public global::OpenAI.CreateBatchRequestMetadata? Type756 { get; set; } + public global::OpenAI.ProjectUserRole? Type756 { get; set; } /// /// /// - public global::OpenAI.ListAssistantsOrder? Type757 { get; set; } + public global::OpenAI.ProjectUserListResponse? Type757 { get; set; } /// /// /// - public global::OpenAI.ListMessagesOrder? Type758 { get; set; } + public global::System.Collections.Generic.IList? Type758 { get; set; } /// /// /// - public global::OpenAI.ListRunsOrder? Type759 { get; set; } + public global::OpenAI.ProjectUserCreateRequest? Type759 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type760 { get; set; } + public global::OpenAI.ProjectUserCreateRequestRole? Type760 { get; set; } /// /// /// - public global::OpenAI.CreateRunIncludeItem? Type761 { get; set; } + public global::OpenAI.ProjectUserUpdateRequest? Type761 { get; set; } /// /// /// - public global::OpenAI.ListRunStepsOrder? Type762 { get; set; } + public global::OpenAI.ProjectUserUpdateRequestRole? Type762 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type763 { get; set; } + public global::OpenAI.ProjectUserDeleteResponse? Type763 { get; set; } /// /// /// - public global::OpenAI.ListRunStepsIncludeItem? Type764 { get; set; } + public global::OpenAI.ProjectUserDeleteResponseObject? Type764 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type765 { get; set; } + public global::OpenAI.ProjectServiceAccount? Type765 { get; set; } /// /// /// - public global::OpenAI.GetRunStepIncludeItem? Type766 { get; set; } + public global::OpenAI.ProjectServiceAccountObject? Type766 { get; set; } /// /// /// - public global::OpenAI.ListVectorStoresOrder? Type767 { get; set; } + public global::OpenAI.ProjectServiceAccountRole? Type767 { get; set; } /// /// /// - public global::OpenAI.ListVectorStoreFilesOrder? Type768 { get; set; } + public global::OpenAI.ProjectServiceAccountListResponse? Type768 { get; set; } /// /// /// - public global::OpenAI.ListVectorStoreFilesFilter? Type769 { get; set; } + public global::OpenAI.ProjectServiceAccountListResponseObject? Type769 { get; set; } /// /// /// - public global::OpenAI.ListFilesInVectorStoreBatchOrder? Type770 { get; set; } + public global::System.Collections.Generic.IList? Type770 { get; set; } /// /// /// - public global::OpenAI.ListFilesInVectorStoreBatchFilter? Type771 { get; set; } + public global::OpenAI.ProjectServiceAccountCreateRequest? Type771 { get; set; } /// /// /// - public global::OpenAI.ListAuditLogsEffectiveAt? Type772 { get; set; } + public global::OpenAI.ProjectServiceAccountCreateResponse? Type772 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type773 { get; set; } + public global::OpenAI.ProjectServiceAccountCreateResponseObject? Type773 { get; set; } /// /// /// - public global::OpenAI.OneOf? Type774 { get; set; } + public global::OpenAI.ProjectServiceAccountCreateResponseRole? Type774 { get; set; } /// /// /// - public global::OpenAI.OneOf? Type775 { get; set; } + public global::OpenAI.ProjectServiceAccountApiKey? Type775 { get; set; } + /// + /// + /// + public global::OpenAI.ProjectServiceAccountApiKeyObject? Type776 { get; set; } + /// + /// + /// + public global::OpenAI.ProjectServiceAccountDeleteResponse? Type777 { get; set; } + /// + /// + /// + public global::OpenAI.ProjectServiceAccountDeleteResponseObject? Type778 { get; set; } + /// + /// + /// + public global::OpenAI.ProjectApiKey? Type779 { get; set; } + /// + /// + /// + public global::OpenAI.ProjectApiKeyObject? Type780 { get; set; } + /// + /// + /// + public global::OpenAI.ProjectApiKeyOwner? Type781 { get; set; } + /// + /// + /// + public global::OpenAI.ProjectApiKeyOwnerType? Type782 { get; set; } + /// + /// + /// + public global::OpenAI.ProjectApiKeyListResponse? Type783 { get; set; } + /// + /// + /// + public global::OpenAI.ProjectApiKeyListResponseObject? Type784 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type785 { get; set; } + /// + /// + /// + public global::OpenAI.ProjectApiKeyDeleteResponse? Type786 { get; set; } + /// + /// + /// + public global::OpenAI.ProjectApiKeyDeleteResponseObject? Type787 { get; set; } + /// + /// + /// + public global::OpenAI.CreateBatchRequest? Type788 { get; set; } + /// + /// + /// + public global::OpenAI.CreateBatchRequestEndpoint? Type789 { get; set; } + /// + /// + /// + public global::OpenAI.CreateBatchRequestCompletionWindow? Type790 { get; set; } + /// + /// + /// + public global::OpenAI.CreateBatchRequestMetadata? Type791 { get; set; } + /// + /// + /// + public global::OpenAI.ListAssistantsOrder? Type792 { get; set; } + /// + /// + /// + public global::OpenAI.ListMessagesOrder? Type793 { get; set; } + /// + /// + /// + public global::OpenAI.ListRunsOrder? Type794 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type795 { get; set; } + /// + /// + /// + public global::OpenAI.CreateRunIncludeItem? Type796 { get; set; } + /// + /// + /// + public global::OpenAI.ListRunStepsOrder? Type797 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type798 { get; set; } + /// + /// + /// + public global::OpenAI.ListRunStepsIncludeItem? Type799 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type800 { get; set; } + /// + /// + /// + public global::OpenAI.GetRunStepIncludeItem? Type801 { get; set; } + /// + /// + /// + public global::OpenAI.ListVectorStoresOrder? Type802 { get; set; } + /// + /// + /// + public global::OpenAI.ListVectorStoreFilesOrder? Type803 { get; set; } + /// + /// + /// + public global::OpenAI.ListVectorStoreFilesFilter? Type804 { get; set; } + /// + /// + /// + public global::OpenAI.ListFilesInVectorStoreBatchOrder? Type805 { get; set; } + /// + /// + /// + public global::OpenAI.ListFilesInVectorStoreBatchFilter? Type806 { get; set; } + /// + /// + /// + public global::OpenAI.ListAuditLogsEffectiveAt? Type807 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type808 { get; set; } + /// + /// + /// + public global::OpenAI.OneOf? Type809 { get; set; } + /// + /// + /// + public global::OpenAI.OneOf? Type810 { get; set; } } } \ No newline at end of file diff --git a/src/libs/OpenAI/Generated/OpenAI.IModerationsClient.CreateModeration.g.cs b/src/libs/OpenAI/Generated/OpenAI.IModerationsClient.CreateModeration.g.cs index 9ad8d36f..f1debba4 100644 --- a/src/libs/OpenAI/Generated/OpenAI.IModerationsClient.CreateModeration.g.cs +++ b/src/libs/OpenAI/Generated/OpenAI.IModerationsClient.CreateModeration.g.cs @@ -5,7 +5,8 @@ namespace OpenAI public partial interface IModerationsClient { /// - /// Classifies if text is potentially harmful. + /// Classifies if text and/or image inputs are potentially harmful. Learn
+ /// more in the [moderation guide](/docs/guides/moderation). ///
/// /// The token to cancel the operation with @@ -15,21 +16,24 @@ public partial interface IModerationsClient global::System.Threading.CancellationToken cancellationToken = default); /// - /// Classifies if text is potentially harmful. + /// Classifies if text and/or image inputs are potentially harmful. Learn
+ /// more in the [moderation guide](/docs/guides/moderation). ///
/// - /// The input text to classify + /// Input (or inputs) to classify. Can be a single string, an array of strings, or
+ /// an array of multi-modal input objects similar to other models. /// /// - /// Two content moderations models are available: `text-moderation-stable` and `text-moderation-latest`.
- /// The default is `text-moderation-latest` which will be automatically upgraded over time. This ensures you are always using our most accurate model. If you use `text-moderation-stable`, we will provide advanced notice before updating the model. Accuracy of `text-moderation-stable` may be slightly lower than for `text-moderation-latest`.
- /// Default Value: text-moderation-latest
- /// Example: text-moderation-stable + /// The content moderation model you would like to use. Learn more in
+ /// [the moderation guide](/docs/guides/moderation), and learn about
+ /// available models [here](/docs/models/moderation).
+ /// Default Value: omni-moderation-latest
+ /// Example: omni-moderation-2024-09-26 /// /// The token to cancel the operation with /// global::System.Threading.Tasks.Task CreateModerationAsync( - global::OpenAI.OneOf> input, + global::OpenAI.OneOf, global::System.Collections.Generic.IList>> input, global::OpenAI.AnyOf? model = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/OpenAI/Generated/OpenAI.IModerationsClient.g.cs b/src/libs/OpenAI/Generated/OpenAI.IModerationsClient.g.cs index cc488c7b..d18d7394 100644 --- a/src/libs/OpenAI/Generated/OpenAI.IModerationsClient.g.cs +++ b/src/libs/OpenAI/Generated/OpenAI.IModerationsClient.g.cs @@ -4,7 +4,7 @@ namespace OpenAI { /// - /// Given a input text, outputs if the model classifies it as potentially harmful.
+ /// Given text and/or image inputs, classifies if those inputs are potentially harmful.
/// If no httpClient is provided, a new one will be created.
/// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. ///
diff --git a/src/libs/OpenAI/Generated/OpenAI.IOpenAiApi.g.cs b/src/libs/OpenAI/Generated/OpenAI.IOpenAiApi.g.cs index 67d63518..df0485f6 100644 --- a/src/libs/OpenAI/Generated/OpenAI.IOpenAiApi.g.cs +++ b/src/libs/OpenAI/Generated/OpenAI.IOpenAiApi.g.cs @@ -72,7 +72,7 @@ public partial interface IOpenAiApi : global::System.IDisposable public ModelsClient Models { get; } /// - /// Given a input text, outputs if the model classifies it as potentially harmful. + /// Given text and/or image inputs, classifies if those inputs are potentially harmful. /// public ModerationsClient Moderations { get; } diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationRequest.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationRequest.g.cs index e6c01433..fd0652c9 100644 --- a/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationRequest.g.cs +++ b/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationRequest.g.cs @@ -11,22 +11,24 @@ namespace OpenAI public sealed partial class CreateModerationRequest { /// - /// The input text to classify + /// Input (or inputs) to classify. Can be a single string, an array of strings, or
+ /// an array of multi-modal input objects similar to other models. ///
[global::System.Text.Json.Serialization.JsonPropertyName("input")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenAI.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenAI.JsonConverters.OneOfJsonConverterFactory3))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenAI.OneOf> Input { get; set; } + public required global::OpenAI.OneOf, global::System.Collections.Generic.IList>> Input { get; set; } /// - /// Two content moderations models are available: `text-moderation-stable` and `text-moderation-latest`.
- /// The default is `text-moderation-latest` which will be automatically upgraded over time. This ensures you are always using our most accurate model. If you use `text-moderation-stable`, we will provide advanced notice before updating the model. Accuracy of `text-moderation-stable` may be slightly lower than for `text-moderation-latest`.
- /// Default Value: text-moderation-latest
- /// Example: text-moderation-stable + /// The content moderation model you would like to use. Learn more in
+ /// [the moderation guide](/docs/guides/moderation), and learn about
+ /// available models [here](/docs/models/moderation).
+ /// Default Value: omni-moderation-latest
+ /// Example: omni-moderation-2024-09-26 ///
[global::System.Text.Json.Serialization.JsonPropertyName("model")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenAI.JsonConverters.AnyOfJsonConverterFactory2))] - public global::OpenAI.AnyOf? Model { get; set; } = global::OpenAI.CreateModerationRequestModel.TextModerationLatest; + public global::OpenAI.AnyOf? Model { get; set; } = global::OpenAI.CreateModerationRequestModel.OmniModerationLatest; /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationRequestInputVariant3ItemVariant1.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationRequestInputVariant3ItemVariant1.g.cs new file mode 100644 index 00000000..a64ea9d4 --- /dev/null +++ b/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationRequestInputVariant3ItemVariant1.g.cs @@ -0,0 +1,31 @@ + +#nullable enable + +namespace OpenAI +{ + /// + /// An object describing an image to classify. + /// + public sealed partial class CreateModerationRequestInputVariant3ItemVariant1 + { + /// + /// Always `image_url`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenAI.JsonConverters.CreateModerationRequestInputVariant3ItemVariant1TypeJsonConverter))] + public global::OpenAI.CreateModerationRequestInputVariant3ItemVariant1Type Type { get; set; } + + /// + /// Contains either an image URL or a data URL for a base64 encoded image. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("image_url")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenAI.CreateModerationRequestInputVariant3ItemVariant1ImageUrl ImageUrl { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + } +} \ No newline at end of file diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationRequestInputVariant3ItemVariant1ImageUrl.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationRequestInputVariant3ItemVariant1ImageUrl.g.cs new file mode 100644 index 00000000..88503b7a --- /dev/null +++ b/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationRequestInputVariant3ItemVariant1ImageUrl.g.cs @@ -0,0 +1,25 @@ + +#nullable enable + +namespace OpenAI +{ + /// + /// Contains either an image URL or a data URL for a base64 encoded image. + /// + public sealed partial class CreateModerationRequestInputVariant3ItemVariant1ImageUrl + { + /// + /// Either a URL of the image or the base64 encoded image data.
+ /// Example: https://example.com/image.jpg + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("url")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Url { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + } +} \ No newline at end of file diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationRequestInputVariant3ItemVariant1Type.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationRequestInputVariant3ItemVariant1Type.g.cs new file mode 100644 index 00000000..b9428da8 --- /dev/null +++ b/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationRequestInputVariant3ItemVariant1Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenAI +{ + /// + /// Always `image_url`. + /// + public enum CreateModerationRequestInputVariant3ItemVariant1Type + { + /// + /// + /// + ImageUrl, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateModerationRequestInputVariant3ItemVariant1TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateModerationRequestInputVariant3ItemVariant1Type value) + { + return value switch + { + CreateModerationRequestInputVariant3ItemVariant1Type.ImageUrl => "image_url", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateModerationRequestInputVariant3ItemVariant1Type? ToEnum(string value) + { + return value switch + { + "image_url" => CreateModerationRequestInputVariant3ItemVariant1Type.ImageUrl, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationRequestInputVariant3ItemVariant2.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationRequestInputVariant3ItemVariant2.g.cs new file mode 100644 index 00000000..8009bf42 --- /dev/null +++ b/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationRequestInputVariant3ItemVariant2.g.cs @@ -0,0 +1,32 @@ + +#nullable enable + +namespace OpenAI +{ + /// + /// An object describing text to classify. + /// + public sealed partial class CreateModerationRequestInputVariant3ItemVariant2 + { + /// + /// Always `text`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenAI.JsonConverters.CreateModerationRequestInputVariant3ItemVariant2TypeJsonConverter))] + public global::OpenAI.CreateModerationRequestInputVariant3ItemVariant2Type Type { get; set; } + + /// + /// A string of text to classify.
+ /// Example: I want to kill them + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("text")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Text { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + } +} \ No newline at end of file diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationRequestInputVariant3ItemVariant2Type.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationRequestInputVariant3ItemVariant2Type.g.cs new file mode 100644 index 00000000..fb548623 --- /dev/null +++ b/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationRequestInputVariant3ItemVariant2Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenAI +{ + /// + /// Always `text`. + /// + public enum CreateModerationRequestInputVariant3ItemVariant2Type + { + /// + /// + /// + Text, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateModerationRequestInputVariant3ItemVariant2TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateModerationRequestInputVariant3ItemVariant2Type value) + { + return value switch + { + CreateModerationRequestInputVariant3ItemVariant2Type.Text => "text", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateModerationRequestInputVariant3ItemVariant2Type? ToEnum(string value) + { + return value switch + { + "text" => CreateModerationRequestInputVariant3ItemVariant2Type.Text, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationRequestModel.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationRequestModel.g.cs index 2f08a356..1a2b620b 100644 --- a/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationRequestModel.g.cs +++ b/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationRequestModel.g.cs @@ -8,6 +8,14 @@ namespace OpenAI ///
public enum CreateModerationRequestModel { + /// + /// + /// + OmniModerationLatest, + /// + /// + /// + OmniModeration20240926, /// /// /// @@ -30,6 +38,8 @@ public static string ToValueString(this CreateModerationRequestModel value) { return value switch { + CreateModerationRequestModel.OmniModerationLatest => "omni-moderation-latest", + CreateModerationRequestModel.OmniModeration20240926 => "omni-moderation-2024-09-26", CreateModerationRequestModel.TextModerationLatest => "text-moderation-latest", CreateModerationRequestModel.TextModerationStable => "text-moderation-stable", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), @@ -42,6 +52,8 @@ public static string ToValueString(this CreateModerationRequestModel value) { return value switch { + "omni-moderation-latest" => CreateModerationRequestModel.OmniModerationLatest, + "omni-moderation-2024-09-26" => CreateModerationRequestModel.OmniModeration20240926, "text-moderation-latest" => CreateModerationRequestModel.TextModerationLatest, "text-moderation-stable" => CreateModerationRequestModel.TextModerationStable, _ => null, diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationResponseResult.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationResponseResult.g.cs index 32c7476a..2e65e759 100644 --- a/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationResponseResult.g.cs +++ b/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationResponseResult.g.cs @@ -29,6 +29,13 @@ public sealed partial class CreateModerationResponseResult [global::System.Text.Json.Serialization.JsonRequired] public required global::OpenAI.CreateModerationResponseResultCategoryScores CategoryScores { get; set; } + /// + /// A list of the categories along with the input type(s) that the score applies to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("category_applied_input_types")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenAI.CreateModerationResponseResultCategoryAppliedInputTypes CategoryAppliedInputTypes { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationResponseResultCategories.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationResponseResultCategories.g.cs index 1820211e..3e1947de 100644 --- a/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationResponseResultCategories.g.cs +++ b/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationResponseResultCategories.g.cs @@ -36,6 +36,20 @@ public sealed partial class CreateModerationResponseResultCategories [global::System.Text.Json.Serialization.JsonRequired] public required bool HarassmentThreatening { get; set; } + /// + /// Content that includes instructions or advice that facilitate the planning or execution of wrongdoing, or that gives advice or instruction on how to commit illicit acts. For example, "how to shoplift" would fit this category. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("illicit")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Illicit { get; set; } + + /// + /// Content that includes instructions or advice that facilitate the planning or execution of wrongdoing that also includes violence, or that gives advice or instruction on the procurement of any weapon. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("illicit/violent")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool IllicitViolent { get; set; } + /// /// Content that promotes, encourages, or depicts acts of self-harm, such as suicide, cutting, and eating disorders. /// diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationResponseResultCategoryAppliedInputTypes.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationResponseResultCategoryAppliedInputTypes.g.cs new file mode 100644 index 00000000..decbe432 --- /dev/null +++ b/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationResponseResultCategoryAppliedInputTypes.g.cs @@ -0,0 +1,108 @@ + +#nullable enable + +namespace OpenAI +{ + /// + /// A list of the categories along with the input type(s) that the score applies to. + /// + public sealed partial class CreateModerationResponseResultCategoryAppliedInputTypes + { + /// + /// The applied input type(s) for the category 'hate'. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("hate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Hate { get; set; } + + /// + /// The applied input type(s) for the category 'hate/threatening'. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("hate/threatening")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList HateThreatening { get; set; } + + /// + /// The applied input type(s) for the category 'harassment'. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("harassment")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Harassment { get; set; } + + /// + /// The applied input type(s) for the category 'harassment/threatening'. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("harassment/threatening")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList HarassmentThreatening { get; set; } + + /// + /// The applied input type(s) for the category 'illicit'. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("illicit")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Illicit { get; set; } + + /// + /// The applied input type(s) for the category 'illicit/violent'. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("illicit/violent")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList IllicitViolent { get; set; } + + /// + /// The applied input type(s) for the category 'self-harm'. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("self-harm")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList SelfHarm { get; set; } + + /// + /// The applied input type(s) for the category 'self-harm/intent'. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("self-harm/intent")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList SelfHarmIntent { get; set; } + + /// + /// The applied input type(s) for the category 'self-harm/instructions'. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("self-harm/instructions")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList SelfHarmInstructions { get; set; } + + /// + /// The applied input type(s) for the category 'sexual'. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sexual")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Sexual { get; set; } + + /// + /// The applied input type(s) for the category 'sexual/minors'. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sexual/minors")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList SexualMinors { get; set; } + + /// + /// The applied input type(s) for the category 'violence'. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("violence")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Violence { get; set; } + + /// + /// The applied input type(s) for the category 'violence/graphic'. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("violence/graphic")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList ViolenceGraphic { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + } +} \ No newline at end of file diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentItem.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentItem.g.cs new file mode 100644 index 00000000..8e0bb4b0 --- /dev/null +++ b/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentItem.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenAI +{ + /// + /// + /// + public enum CreateModerationResponseResultCategoryAppliedInputTypesHarassmentItem + { + /// + /// + /// + Text, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateModerationResponseResultCategoryAppliedInputTypesHarassmentItemExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateModerationResponseResultCategoryAppliedInputTypesHarassmentItem value) + { + return value switch + { + CreateModerationResponseResultCategoryAppliedInputTypesHarassmentItem.Text => "text", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateModerationResponseResultCategoryAppliedInputTypesHarassmentItem? ToEnum(string value) + { + return value switch + { + "text" => CreateModerationResponseResultCategoryAppliedInputTypesHarassmentItem.Text, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentThreateningItem.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentThreateningItem.g.cs new file mode 100644 index 00000000..bfafc41c --- /dev/null +++ b/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentThreateningItem.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenAI +{ + /// + /// + /// + public enum CreateModerationResponseResultCategoryAppliedInputTypesHarassmentThreateningItem + { + /// + /// + /// + Text, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateModerationResponseResultCategoryAppliedInputTypesHarassmentThreateningItemExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateModerationResponseResultCategoryAppliedInputTypesHarassmentThreateningItem value) + { + return value switch + { + CreateModerationResponseResultCategoryAppliedInputTypesHarassmentThreateningItem.Text => "text", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateModerationResponseResultCategoryAppliedInputTypesHarassmentThreateningItem? ToEnum(string value) + { + return value switch + { + "text" => CreateModerationResponseResultCategoryAppliedInputTypesHarassmentThreateningItem.Text, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationResponseResultCategoryAppliedInputTypesHateItem.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationResponseResultCategoryAppliedInputTypesHateItem.g.cs new file mode 100644 index 00000000..f16ae3fe --- /dev/null +++ b/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationResponseResultCategoryAppliedInputTypesHateItem.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenAI +{ + /// + /// + /// + public enum CreateModerationResponseResultCategoryAppliedInputTypesHateItem + { + /// + /// + /// + Text, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateModerationResponseResultCategoryAppliedInputTypesHateItemExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateModerationResponseResultCategoryAppliedInputTypesHateItem value) + { + return value switch + { + CreateModerationResponseResultCategoryAppliedInputTypesHateItem.Text => "text", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateModerationResponseResultCategoryAppliedInputTypesHateItem? ToEnum(string value) + { + return value switch + { + "text" => CreateModerationResponseResultCategoryAppliedInputTypesHateItem.Text, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationResponseResultCategoryAppliedInputTypesHateThreateningItem.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationResponseResultCategoryAppliedInputTypesHateThreateningItem.g.cs new file mode 100644 index 00000000..91723b28 --- /dev/null +++ b/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationResponseResultCategoryAppliedInputTypesHateThreateningItem.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenAI +{ + /// + /// + /// + public enum CreateModerationResponseResultCategoryAppliedInputTypesHateThreateningItem + { + /// + /// + /// + Text, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateModerationResponseResultCategoryAppliedInputTypesHateThreateningItemExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateModerationResponseResultCategoryAppliedInputTypesHateThreateningItem value) + { + return value switch + { + CreateModerationResponseResultCategoryAppliedInputTypesHateThreateningItem.Text => "text", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateModerationResponseResultCategoryAppliedInputTypesHateThreateningItem? ToEnum(string value) + { + return value switch + { + "text" => CreateModerationResponseResultCategoryAppliedInputTypesHateThreateningItem.Text, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationResponseResultCategoryAppliedInputTypesIllicitItem.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationResponseResultCategoryAppliedInputTypesIllicitItem.g.cs new file mode 100644 index 00000000..3b495286 --- /dev/null +++ b/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationResponseResultCategoryAppliedInputTypesIllicitItem.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenAI +{ + /// + /// + /// + public enum CreateModerationResponseResultCategoryAppliedInputTypesIllicitItem + { + /// + /// + /// + Text, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateModerationResponseResultCategoryAppliedInputTypesIllicitItemExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateModerationResponseResultCategoryAppliedInputTypesIllicitItem value) + { + return value switch + { + CreateModerationResponseResultCategoryAppliedInputTypesIllicitItem.Text => "text", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateModerationResponseResultCategoryAppliedInputTypesIllicitItem? ToEnum(string value) + { + return value switch + { + "text" => CreateModerationResponseResultCategoryAppliedInputTypesIllicitItem.Text, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationResponseResultCategoryAppliedInputTypesIllicitViolentItem.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationResponseResultCategoryAppliedInputTypesIllicitViolentItem.g.cs new file mode 100644 index 00000000..0f028cd8 --- /dev/null +++ b/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationResponseResultCategoryAppliedInputTypesIllicitViolentItem.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenAI +{ + /// + /// + /// + public enum CreateModerationResponseResultCategoryAppliedInputTypesIllicitViolentItem + { + /// + /// + /// + Text, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateModerationResponseResultCategoryAppliedInputTypesIllicitViolentItemExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateModerationResponseResultCategoryAppliedInputTypesIllicitViolentItem value) + { + return value switch + { + CreateModerationResponseResultCategoryAppliedInputTypesIllicitViolentItem.Text => "text", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateModerationResponseResultCategoryAppliedInputTypesIllicitViolentItem? ToEnum(string value) + { + return value switch + { + "text" => CreateModerationResponseResultCategoryAppliedInputTypesIllicitViolentItem.Text, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmInstruction.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmInstruction.g.cs new file mode 100644 index 00000000..c3061d54 --- /dev/null +++ b/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmInstruction.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace OpenAI +{ + /// + /// + /// + public enum CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmInstruction + { + /// + /// + /// + Text, + /// + /// + /// + Image, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmInstructionExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmInstruction value) + { + return value switch + { + CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmInstruction.Text => "text", + CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmInstruction.Image => "image", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmInstruction? ToEnum(string value) + { + return value switch + { + "text" => CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmInstruction.Text, + "image" => CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmInstruction.Image, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmIntentItem.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmIntentItem.g.cs new file mode 100644 index 00000000..01c530f5 --- /dev/null +++ b/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmIntentItem.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace OpenAI +{ + /// + /// + /// + public enum CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmIntentItem + { + /// + /// + /// + Text, + /// + /// + /// + Image, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmIntentItemExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmIntentItem value) + { + return value switch + { + CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmIntentItem.Text => "text", + CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmIntentItem.Image => "image", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmIntentItem? ToEnum(string value) + { + return value switch + { + "text" => CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmIntentItem.Text, + "image" => CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmIntentItem.Image, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmItem.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmItem.g.cs new file mode 100644 index 00000000..956d99ef --- /dev/null +++ b/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmItem.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace OpenAI +{ + /// + /// + /// + public enum CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmItem + { + /// + /// + /// + Text, + /// + /// + /// + Image, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmItemExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmItem value) + { + return value switch + { + CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmItem.Text => "text", + CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmItem.Image => "image", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmItem? ToEnum(string value) + { + return value switch + { + "text" => CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmItem.Text, + "image" => CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmItem.Image, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationResponseResultCategoryAppliedInputTypesSexualItem.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationResponseResultCategoryAppliedInputTypesSexualItem.g.cs new file mode 100644 index 00000000..dc466e1d --- /dev/null +++ b/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationResponseResultCategoryAppliedInputTypesSexualItem.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace OpenAI +{ + /// + /// + /// + public enum CreateModerationResponseResultCategoryAppliedInputTypesSexualItem + { + /// + /// + /// + Text, + /// + /// + /// + Image, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateModerationResponseResultCategoryAppliedInputTypesSexualItemExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateModerationResponseResultCategoryAppliedInputTypesSexualItem value) + { + return value switch + { + CreateModerationResponseResultCategoryAppliedInputTypesSexualItem.Text => "text", + CreateModerationResponseResultCategoryAppliedInputTypesSexualItem.Image => "image", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateModerationResponseResultCategoryAppliedInputTypesSexualItem? ToEnum(string value) + { + return value switch + { + "text" => CreateModerationResponseResultCategoryAppliedInputTypesSexualItem.Text, + "image" => CreateModerationResponseResultCategoryAppliedInputTypesSexualItem.Image, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationResponseResultCategoryAppliedInputTypesSexualMinor.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationResponseResultCategoryAppliedInputTypesSexualMinor.g.cs new file mode 100644 index 00000000..7be2b782 --- /dev/null +++ b/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationResponseResultCategoryAppliedInputTypesSexualMinor.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenAI +{ + /// + /// + /// + public enum CreateModerationResponseResultCategoryAppliedInputTypesSexualMinor + { + /// + /// + /// + Text, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateModerationResponseResultCategoryAppliedInputTypesSexualMinorExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateModerationResponseResultCategoryAppliedInputTypesSexualMinor value) + { + return value switch + { + CreateModerationResponseResultCategoryAppliedInputTypesSexualMinor.Text => "text", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateModerationResponseResultCategoryAppliedInputTypesSexualMinor? ToEnum(string value) + { + return value switch + { + "text" => CreateModerationResponseResultCategoryAppliedInputTypesSexualMinor.Text, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationResponseResultCategoryAppliedInputTypesViolenceGraphicItem.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationResponseResultCategoryAppliedInputTypesViolenceGraphicItem.g.cs new file mode 100644 index 00000000..79092064 --- /dev/null +++ b/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationResponseResultCategoryAppliedInputTypesViolenceGraphicItem.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace OpenAI +{ + /// + /// + /// + public enum CreateModerationResponseResultCategoryAppliedInputTypesViolenceGraphicItem + { + /// + /// + /// + Text, + /// + /// + /// + Image, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateModerationResponseResultCategoryAppliedInputTypesViolenceGraphicItemExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateModerationResponseResultCategoryAppliedInputTypesViolenceGraphicItem value) + { + return value switch + { + CreateModerationResponseResultCategoryAppliedInputTypesViolenceGraphicItem.Text => "text", + CreateModerationResponseResultCategoryAppliedInputTypesViolenceGraphicItem.Image => "image", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateModerationResponseResultCategoryAppliedInputTypesViolenceGraphicItem? ToEnum(string value) + { + return value switch + { + "text" => CreateModerationResponseResultCategoryAppliedInputTypesViolenceGraphicItem.Text, + "image" => CreateModerationResponseResultCategoryAppliedInputTypesViolenceGraphicItem.Image, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationResponseResultCategoryAppliedInputTypesViolenceItem.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationResponseResultCategoryAppliedInputTypesViolenceItem.g.cs new file mode 100644 index 00000000..7cd4f386 --- /dev/null +++ b/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationResponseResultCategoryAppliedInputTypesViolenceItem.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace OpenAI +{ + /// + /// + /// + public enum CreateModerationResponseResultCategoryAppliedInputTypesViolenceItem + { + /// + /// + /// + Text, + /// + /// + /// + Image, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateModerationResponseResultCategoryAppliedInputTypesViolenceItemExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateModerationResponseResultCategoryAppliedInputTypesViolenceItem value) + { + return value switch + { + CreateModerationResponseResultCategoryAppliedInputTypesViolenceItem.Text => "text", + CreateModerationResponseResultCategoryAppliedInputTypesViolenceItem.Image => "image", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateModerationResponseResultCategoryAppliedInputTypesViolenceItem? ToEnum(string value) + { + return value switch + { + "text" => CreateModerationResponseResultCategoryAppliedInputTypesViolenceItem.Text, + "image" => CreateModerationResponseResultCategoryAppliedInputTypesViolenceItem.Image, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationResponseResultCategoryScores.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationResponseResultCategoryScores.g.cs index 98164752..ecaabe42 100644 --- a/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationResponseResultCategoryScores.g.cs +++ b/src/libs/OpenAI/Generated/OpenAI.Models.CreateModerationResponseResultCategoryScores.g.cs @@ -36,6 +36,20 @@ public sealed partial class CreateModerationResponseResultCategoryScores [global::System.Text.Json.Serialization.JsonRequired] public required double HarassmentThreatening { get; set; } + /// + /// The score for the category 'illicit'. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("illicit")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double Illicit { get; set; } + + /// + /// The score for the category 'illicit/violent'. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("illicit/violent")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double IllicitViolent { get; set; } + /// /// The score for the category 'self-harm'. /// diff --git a/src/libs/OpenAI/Generated/OpenAI.ModerationsClient.CreateModeration.g.cs b/src/libs/OpenAI/Generated/OpenAI.ModerationsClient.CreateModeration.g.cs index e1a1b53b..bef1d409 100644 --- a/src/libs/OpenAI/Generated/OpenAI.ModerationsClient.CreateModeration.g.cs +++ b/src/libs/OpenAI/Generated/OpenAI.ModerationsClient.CreateModeration.g.cs @@ -22,7 +22,8 @@ partial void ProcessCreateModerationResponseContent( ref string content); /// - /// Classifies if text is potentially harmful. + /// Classifies if text and/or image inputs are potentially harmful. Learn
+ /// more in the [moderation guide](/docs/guides/moderation). ///
/// /// The token to cancel the operation with @@ -99,21 +100,24 @@ partial void ProcessCreateModerationResponseContent( } /// - /// Classifies if text is potentially harmful. + /// Classifies if text and/or image inputs are potentially harmful. Learn
+ /// more in the [moderation guide](/docs/guides/moderation). ///
/// - /// The input text to classify + /// Input (or inputs) to classify. Can be a single string, an array of strings, or
+ /// an array of multi-modal input objects similar to other models. /// /// - /// Two content moderations models are available: `text-moderation-stable` and `text-moderation-latest`.
- /// The default is `text-moderation-latest` which will be automatically upgraded over time. This ensures you are always using our most accurate model. If you use `text-moderation-stable`, we will provide advanced notice before updating the model. Accuracy of `text-moderation-stable` may be slightly lower than for `text-moderation-latest`.
- /// Default Value: text-moderation-latest
- /// Example: text-moderation-stable + /// The content moderation model you would like to use. Learn more in
+ /// [the moderation guide](/docs/guides/moderation), and learn about
+ /// available models [here](/docs/models/moderation).
+ /// Default Value: omni-moderation-latest
+ /// Example: omni-moderation-2024-09-26 /// /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task CreateModerationAsync( - global::OpenAI.OneOf> input, + global::OpenAI.OneOf, global::System.Collections.Generic.IList>> input, global::OpenAI.AnyOf? model = default, global::System.Threading.CancellationToken cancellationToken = default) { diff --git a/src/libs/OpenAI/Generated/OpenAI.ModerationsClient.g.cs b/src/libs/OpenAI/Generated/OpenAI.ModerationsClient.g.cs index 5b2554ea..4a5530ea 100644 --- a/src/libs/OpenAI/Generated/OpenAI.ModerationsClient.g.cs +++ b/src/libs/OpenAI/Generated/OpenAI.ModerationsClient.g.cs @@ -4,7 +4,7 @@ namespace OpenAI { /// - /// Given a input text, outputs if the model classifies it as potentially harmful.
+ /// Given text and/or image inputs, classifies if those inputs are potentially harmful.
/// If no httpClient is provided, a new one will be created.
/// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. ///
diff --git a/src/libs/OpenAI/Generated/OpenAI.OpenAiApi.g.cs b/src/libs/OpenAI/Generated/OpenAI.OpenAiApi.g.cs index 774271e3..f5bccdda 100644 --- a/src/libs/OpenAI/Generated/OpenAI.OpenAiApi.g.cs +++ b/src/libs/OpenAI/Generated/OpenAI.OpenAiApi.g.cs @@ -112,7 +112,7 @@ public sealed partial class OpenAiApi : global::OpenAI.IOpenAiApi, global::Syste }; /// - /// Given a input text, outputs if the model classifies it as potentially harmful. + /// Given text and/or image inputs, classifies if those inputs are potentially harmful. /// public ModerationsClient Moderations => new ModerationsClient(_httpClient) { diff --git a/src/libs/OpenAI/openapi.yaml b/src/libs/OpenAI/openapi.yaml index dd431cbf..f871eee2 100644 --- a/src/libs/OpenAI/openapi.yaml +++ b/src/libs/OpenAI/openapi.yaml @@ -43,13 +43,13 @@ paths: curl: "curl https://api.openai.com/v1/chat/completions \\\n -H \"Content-Type: application/json\" \\\n -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n -d '{\n \"model\": \"VAR_model_id\",\n \"messages\": [\n {\n \"role\": \"system\",\n \"content\": \"You are a helpful assistant.\"\n },\n {\n \"role\": \"user\",\n \"content\": \"Hello!\"\n }\n ]\n }'\n" python: "from openai import OpenAI\nclient = OpenAI()\n\ncompletion = client.chat.completions.create(\n model=\"VAR_model_id\",\n messages=[\n {\"role\": \"system\", \"content\": \"You are a helpful assistant.\"},\n {\"role\": \"user\", \"content\": \"Hello!\"}\n ]\n)\n\nprint(completion.choices[0].message)\n" node.js: "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function main() {\n const completion = await openai.chat.completions.create({\n messages: [{ role: \"system\", content: \"You are a helpful assistant.\" }],\n model: \"VAR_model_id\",\n });\n\n console.log(completion.choices[0]);\n}\n\nmain();" - response: "{\n \"id\": \"chatcmpl-123\",\n \"object\": \"chat.completion\",\n \"created\": 1677652288,\n \"model\": \"gpt-4o-mini\",\n \"system_fingerprint\": \"fp_44709d6fcb\",\n \"choices\": [{\n \"index\": 0,\n \"message\": {\n \"role\": \"assistant\",\n \"content\": \"\\n\\nHello there, how may I assist you today?\",\n },\n \"logprobs\": null,\n \"finish_reason\": \"stop\"\n }],\n \"usage\": {\n \"prompt_tokens\": 9,\n \"completion_tokens\": 12,\n \"total_tokens\": 21\n }\n}\n" + response: "{\n \"id\": \"chatcmpl-123\",\n \"object\": \"chat.completion\",\n \"created\": 1677652288,\n \"model\": \"gpt-4o-mini\",\n \"system_fingerprint\": \"fp_44709d6fcb\",\n \"choices\": [{\n \"index\": 0,\n \"message\": {\n \"role\": \"assistant\",\n \"content\": \"\\n\\nHello there, how may I assist you today?\",\n },\n \"logprobs\": null,\n \"finish_reason\": \"stop\"\n }],\n \"usage\": {\n \"prompt_tokens\": 9,\n \"completion_tokens\": 12,\n \"total_tokens\": 21,\n \"completion_tokens_details\": {\n \"reasoning_tokens\": 0\n }\n }\n}\n" - title: Image input request: curl: "curl https://api.openai.com/v1/chat/completions \\\n -H \"Content-Type: application/json\" \\\n -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n -d '{\n \"model\": \"gpt-4o\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": [\n {\n \"type\": \"text\",\n \"text\": \"What'\\''s in this image?\"\n },\n {\n \"type\": \"image_url\",\n \"image_url\": {\n \"url\": \"https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/Gfp-wisconsin-madison-the-nature-boardwalk.jpg/2560px-Gfp-wisconsin-madison-the-nature-boardwalk.jpg\"\n }\n }\n ]\n }\n ],\n \"max_tokens\": 300\n }'\n" python: "from openai import OpenAI\n\nclient = OpenAI()\n\nresponse = client.chat.completions.create(\n model=\"gpt-4o\",\n messages=[\n {\n \"role\": \"user\",\n \"content\": [\n {\"type\": \"text\", \"text\": \"What's in this image?\"},\n {\n \"type\": \"image_url\",\n \"image_url\": {\n \"url\": \"https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/Gfp-wisconsin-madison-the-nature-boardwalk.jpg/2560px-Gfp-wisconsin-madison-the-nature-boardwalk.jpg\",\n }\n },\n ],\n }\n ],\n max_tokens=300,\n)\n\nprint(response.choices[0])\n" node.js: "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function main() {\n const response = await openai.chat.completions.create({\n model: \"gpt-4o\",\n messages: [\n {\n role: \"user\",\n content: [\n { type: \"text\", text: \"What's in this image?\" },\n {\n type: \"image_url\",\n image_url: {\n \"url\": \"https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/Gfp-wisconsin-madison-the-nature-boardwalk.jpg/2560px-Gfp-wisconsin-madison-the-nature-boardwalk.jpg\",\n },\n }\n ],\n },\n ],\n });\n console.log(response.choices[0]);\n}\nmain();" - response: "{\n \"id\": \"chatcmpl-123\",\n \"object\": \"chat.completion\",\n \"created\": 1677652288,\n \"model\": \"gpt-4o-mini\",\n \"system_fingerprint\": \"fp_44709d6fcb\",\n \"choices\": [{\n \"index\": 0,\n \"message\": {\n \"role\": \"assistant\",\n \"content\": \"\\n\\nThis image shows a wooden boardwalk extending through a lush green marshland.\",\n },\n \"logprobs\": null,\n \"finish_reason\": \"stop\"\n }],\n \"usage\": {\n \"prompt_tokens\": 9,\n \"completion_tokens\": 12,\n \"total_tokens\": 21\n }\n}\n" + response: "{\n \"id\": \"chatcmpl-123\",\n \"object\": \"chat.completion\",\n \"created\": 1677652288,\n \"model\": \"gpt-4o-mini\",\n \"system_fingerprint\": \"fp_44709d6fcb\",\n \"choices\": [{\n \"index\": 0,\n \"message\": {\n \"role\": \"assistant\",\n \"content\": \"\\n\\nThis image shows a wooden boardwalk extending through a lush green marshland.\",\n },\n \"logprobs\": null,\n \"finish_reason\": \"stop\"\n }],\n \"usage\": {\n \"prompt_tokens\": 9,\n \"completion_tokens\": 12,\n \"total_tokens\": 21,\n \"completion_tokens_details\": {\n \"reasoning_tokens\": 0\n }\n }\n}\n" - title: Streaming request: curl: "curl https://api.openai.com/v1/chat/completions \\\n -H \"Content-Type: application/json\" \\\n -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n -d '{\n \"model\": \"VAR_model_id\",\n \"messages\": [\n {\n \"role\": \"system\",\n \"content\": \"You are a helpful assistant.\"\n },\n {\n \"role\": \"user\",\n \"content\": \"Hello!\"\n }\n ],\n \"stream\": true\n }'\n" @@ -61,13 +61,13 @@ paths: curl: "curl https://api.openai.com/v1/chat/completions \\\n-H \"Content-Type: application/json\" \\\n-H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n-d '{\n \"model\": \"gpt-4o\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"What'\\''s the weather like in Boston today?\"\n }\n ],\n \"tools\": [\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"get_current_weather\",\n \"description\": \"Get the current weather in a given location\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"location\": {\n \"type\": \"string\",\n \"description\": \"The city and state, e.g. San Francisco, CA\"\n },\n \"unit\": {\n \"type\": \"string\",\n \"enum\": [\"celsius\", \"fahrenheit\"]\n }\n },\n \"required\": [\"location\"]\n }\n }\n }\n ],\n \"tool_choice\": \"auto\"\n}'\n" python: "from openai import OpenAI\nclient = OpenAI()\n\ntools = [\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"get_current_weather\",\n \"description\": \"Get the current weather in a given location\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"location\": {\n \"type\": \"string\",\n \"description\": \"The city and state, e.g. San Francisco, CA\",\n },\n \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"]},\n },\n \"required\": [\"location\"],\n },\n }\n }\n]\nmessages = [{\"role\": \"user\", \"content\": \"What's the weather like in Boston today?\"}]\ncompletion = client.chat.completions.create(\n model=\"VAR_model_id\",\n messages=messages,\n tools=tools,\n tool_choice=\"auto\"\n)\n\nprint(completion)\n" node.js: "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function main() {\n const messages = [{\"role\": \"user\", \"content\": \"What's the weather like in Boston today?\"}];\n const tools = [\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"get_current_weather\",\n \"description\": \"Get the current weather in a given location\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"location\": {\n \"type\": \"string\",\n \"description\": \"The city and state, e.g. San Francisco, CA\",\n },\n \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"]},\n },\n \"required\": [\"location\"],\n },\n }\n }\n ];\n\n const response = await openai.chat.completions.create({\n model: \"gpt-4o\",\n messages: messages,\n tools: tools,\n tool_choice: \"auto\",\n });\n\n console.log(response);\n}\n\nmain();" - response: "{\n \"id\": \"chatcmpl-abc123\",\n \"object\": \"chat.completion\",\n \"created\": 1699896916,\n \"model\": \"gpt-4o-mini\",\n \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\": \"assistant\",\n \"content\": null,\n \"tool_calls\": [\n {\n \"id\": \"call_abc123\",\n \"type\": \"function\",\n \"function\": {\n \"name\": \"get_current_weather\",\n \"arguments\": \"{\\n\\\"location\\\": \\\"Boston, MA\\\"\\n}\"\n }\n }\n ]\n },\n \"logprobs\": null,\n \"finish_reason\": \"tool_calls\"\n }\n ],\n \"usage\": {\n \"prompt_tokens\": 82,\n \"completion_tokens\": 17,\n \"total_tokens\": 99\n }\n}\n" + response: "{\n \"id\": \"chatcmpl-abc123\",\n \"object\": \"chat.completion\",\n \"created\": 1699896916,\n \"model\": \"gpt-4o-mini\",\n \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\": \"assistant\",\n \"content\": null,\n \"tool_calls\": [\n {\n \"id\": \"call_abc123\",\n \"type\": \"function\",\n \"function\": {\n \"name\": \"get_current_weather\",\n \"arguments\": \"{\\n\\\"location\\\": \\\"Boston, MA\\\"\\n}\"\n }\n }\n ]\n },\n \"logprobs\": null,\n \"finish_reason\": \"tool_calls\"\n }\n ],\n \"usage\": {\n \"prompt_tokens\": 82,\n \"completion_tokens\": 17,\n \"total_tokens\": 99,\n \"completion_tokens_details\": {\n \"reasoning_tokens\": 0\n }\n }\n}\n" - title: Logprobs request: curl: "curl https://api.openai.com/v1/chat/completions \\\n -H \"Content-Type: application/json\" \\\n -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n -d '{\n \"model\": \"VAR_model_id\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"Hello!\"\n }\n ],\n \"logprobs\": true,\n \"top_logprobs\": 2\n }'\n" python: "from openai import OpenAI\nclient = OpenAI()\n\ncompletion = client.chat.completions.create(\n model=\"VAR_model_id\",\n messages=[\n {\"role\": \"user\", \"content\": \"Hello!\"}\n ],\n logprobs=True,\n top_logprobs=2\n)\n\nprint(completion.choices[0].message)\nprint(completion.choices[0].logprobs)\n" node.js: "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function main() {\n const completion = await openai.chat.completions.create({\n messages: [{ role: \"user\", content: \"Hello!\" }],\n model: \"VAR_model_id\",\n logprobs: true,\n top_logprobs: 2,\n });\n\n console.log(completion.choices[0]);\n}\n\nmain();" - response: "{\n \"id\": \"chatcmpl-123\",\n \"object\": \"chat.completion\",\n \"created\": 1702685778,\n \"model\": \"gpt-4o-mini\",\n \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\": \"assistant\",\n \"content\": \"Hello! How can I assist you today?\"\n },\n \"logprobs\": {\n \"content\": [\n {\n \"token\": \"Hello\",\n \"logprob\": -0.31725305,\n \"bytes\": [72, 101, 108, 108, 111],\n \"top_logprobs\": [\n {\n \"token\": \"Hello\",\n \"logprob\": -0.31725305,\n \"bytes\": [72, 101, 108, 108, 111]\n },\n {\n \"token\": \"Hi\",\n \"logprob\": -1.3190403,\n \"bytes\": [72, 105]\n }\n ]\n },\n {\n \"token\": \"!\",\n \"logprob\": -0.02380986,\n \"bytes\": [\n 33\n ],\n \"top_logprobs\": [\n {\n \"token\": \"!\",\n \"logprob\": -0.02380986,\n \"bytes\": [33]\n },\n {\n \"token\": \" there\",\n \"logprob\": -3.787621,\n \"bytes\": [32, 116, 104, 101, 114, 101]\n }\n ]\n },\n {\n \"token\": \" How\",\n \"logprob\": -0.000054669687,\n \"bytes\": [32, 72, 111, 119],\n \"top_logprobs\": [\n {\n \"token\": \" How\",\n \"logprob\": -0.000054669687,\n \"bytes\": [32, 72, 111, 119]\n },\n {\n \"token\": \"<|end|>\",\n \"logprob\": -10.953937,\n \"bytes\": null\n }\n ]\n },\n {\n \"token\": \" can\",\n \"logprob\": -0.015801601,\n \"bytes\": [32, 99, 97, 110],\n \"top_logprobs\": [\n {\n \"token\": \" can\",\n \"logprob\": -0.015801601,\n \"bytes\": [32, 99, 97, 110]\n },\n {\n \"token\": \" may\",\n \"logprob\": -4.161023,\n \"bytes\": [32, 109, 97, 121]\n }\n ]\n },\n {\n \"token\": \" I\",\n \"logprob\": -3.7697225e-6,\n \"bytes\": [\n 32,\n 73\n ],\n \"top_logprobs\": [\n {\n \"token\": \" I\",\n \"logprob\": -3.7697225e-6,\n \"bytes\": [32, 73]\n },\n {\n \"token\": \" assist\",\n \"logprob\": -13.596657,\n \"bytes\": [32, 97, 115, 115, 105, 115, 116]\n }\n ]\n },\n {\n \"token\": \" assist\",\n \"logprob\": -0.04571125,\n \"bytes\": [32, 97, 115, 115, 105, 115, 116],\n \"top_logprobs\": [\n {\n \"token\": \" assist\",\n \"logprob\": -0.04571125,\n \"bytes\": [32, 97, 115, 115, 105, 115, 116]\n },\n {\n \"token\": \" help\",\n \"logprob\": -3.1089056,\n \"bytes\": [32, 104, 101, 108, 112]\n }\n ]\n },\n {\n \"token\": \" you\",\n \"logprob\": -5.4385737e-6,\n \"bytes\": [32, 121, 111, 117],\n \"top_logprobs\": [\n {\n \"token\": \" you\",\n \"logprob\": -5.4385737e-6,\n \"bytes\": [32, 121, 111, 117]\n },\n {\n \"token\": \" today\",\n \"logprob\": -12.807695,\n \"bytes\": [32, 116, 111, 100, 97, 121]\n }\n ]\n },\n {\n \"token\": \" today\",\n \"logprob\": -0.0040071653,\n \"bytes\": [32, 116, 111, 100, 97, 121],\n \"top_logprobs\": [\n {\n \"token\": \" today\",\n \"logprob\": -0.0040071653,\n \"bytes\": [32, 116, 111, 100, 97, 121]\n },\n {\n \"token\": \"?\",\n \"logprob\": -5.5247097,\n \"bytes\": [63]\n }\n ]\n },\n {\n \"token\": \"?\",\n \"logprob\": -0.0008108172,\n \"bytes\": [63],\n \"top_logprobs\": [\n {\n \"token\": \"?\",\n \"logprob\": -0.0008108172,\n \"bytes\": [63]\n },\n {\n \"token\": \"?\\n\",\n \"logprob\": -7.184561,\n \"bytes\": [63, 10]\n }\n ]\n }\n ]\n },\n \"finish_reason\": \"stop\"\n }\n ],\n \"usage\": {\n \"prompt_tokens\": 9,\n \"completion_tokens\": 9,\n \"total_tokens\": 18\n },\n \"system_fingerprint\": null\n}\n" + response: "{\n \"id\": \"chatcmpl-123\",\n \"object\": \"chat.completion\",\n \"created\": 1702685778,\n \"model\": \"gpt-4o-mini\",\n \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\": \"assistant\",\n \"content\": \"Hello! How can I assist you today?\"\n },\n \"logprobs\": {\n \"content\": [\n {\n \"token\": \"Hello\",\n \"logprob\": -0.31725305,\n \"bytes\": [72, 101, 108, 108, 111],\n \"top_logprobs\": [\n {\n \"token\": \"Hello\",\n \"logprob\": -0.31725305,\n \"bytes\": [72, 101, 108, 108, 111]\n },\n {\n \"token\": \"Hi\",\n \"logprob\": -1.3190403,\n \"bytes\": [72, 105]\n }\n ]\n },\n {\n \"token\": \"!\",\n \"logprob\": -0.02380986,\n \"bytes\": [\n 33\n ],\n \"top_logprobs\": [\n {\n \"token\": \"!\",\n \"logprob\": -0.02380986,\n \"bytes\": [33]\n },\n {\n \"token\": \" there\",\n \"logprob\": -3.787621,\n \"bytes\": [32, 116, 104, 101, 114, 101]\n }\n ]\n },\n {\n \"token\": \" How\",\n \"logprob\": -0.000054669687,\n \"bytes\": [32, 72, 111, 119],\n \"top_logprobs\": [\n {\n \"token\": \" How\",\n \"logprob\": -0.000054669687,\n \"bytes\": [32, 72, 111, 119]\n },\n {\n \"token\": \"<|end|>\",\n \"logprob\": -10.953937,\n \"bytes\": null\n }\n ]\n },\n {\n \"token\": \" can\",\n \"logprob\": -0.015801601,\n \"bytes\": [32, 99, 97, 110],\n \"top_logprobs\": [\n {\n \"token\": \" can\",\n \"logprob\": -0.015801601,\n \"bytes\": [32, 99, 97, 110]\n },\n {\n \"token\": \" may\",\n \"logprob\": -4.161023,\n \"bytes\": [32, 109, 97, 121]\n }\n ]\n },\n {\n \"token\": \" I\",\n \"logprob\": -3.7697225e-6,\n \"bytes\": [\n 32,\n 73\n ],\n \"top_logprobs\": [\n {\n \"token\": \" I\",\n \"logprob\": -3.7697225e-6,\n \"bytes\": [32, 73]\n },\n {\n \"token\": \" assist\",\n \"logprob\": -13.596657,\n \"bytes\": [32, 97, 115, 115, 105, 115, 116]\n }\n ]\n },\n {\n \"token\": \" assist\",\n \"logprob\": -0.04571125,\n \"bytes\": [32, 97, 115, 115, 105, 115, 116],\n \"top_logprobs\": [\n {\n \"token\": \" assist\",\n \"logprob\": -0.04571125,\n \"bytes\": [32, 97, 115, 115, 105, 115, 116]\n },\n {\n \"token\": \" help\",\n \"logprob\": -3.1089056,\n \"bytes\": [32, 104, 101, 108, 112]\n }\n ]\n },\n {\n \"token\": \" you\",\n \"logprob\": -5.4385737e-6,\n \"bytes\": [32, 121, 111, 117],\n \"top_logprobs\": [\n {\n \"token\": \" you\",\n \"logprob\": -5.4385737e-6,\n \"bytes\": [32, 121, 111, 117]\n },\n {\n \"token\": \" today\",\n \"logprob\": -12.807695,\n \"bytes\": [32, 116, 111, 100, 97, 121]\n }\n ]\n },\n {\n \"token\": \" today\",\n \"logprob\": -0.0040071653,\n \"bytes\": [32, 116, 111, 100, 97, 121],\n \"top_logprobs\": [\n {\n \"token\": \" today\",\n \"logprob\": -0.0040071653,\n \"bytes\": [32, 116, 111, 100, 97, 121]\n },\n {\n \"token\": \"?\",\n \"logprob\": -5.5247097,\n \"bytes\": [63]\n }\n ]\n },\n {\n \"token\": \"?\",\n \"logprob\": -0.0008108172,\n \"bytes\": [63],\n \"top_logprobs\": [\n {\n \"token\": \"?\",\n \"logprob\": -0.0008108172,\n \"bytes\": [63]\n },\n {\n \"token\": \"?\\n\",\n \"logprob\": -7.184561,\n \"bytes\": [63, 10]\n }\n ]\n }\n ]\n },\n \"finish_reason\": \"stop\"\n }\n ],\n \"usage\": {\n \"prompt_tokens\": 9,\n \"completion_tokens\": 9,\n \"total_tokens\": 18,\n \"completion_tokens_details\": {\n \"reasoning_tokens\": 0\n }\n },\n \"system_fingerprint\": null\n}\n" /completions: post: tags: @@ -914,7 +914,7 @@ paths: post: tags: - Moderations - summary: Classifies if text is potentially harmful. + summary: "Classifies if text and/or image inputs are potentially harmful. Learn\nmore in the [moderation guide](/docs/guides/moderation).\n" operationId: createModeration requestBody: content: @@ -934,11 +934,18 @@ paths: group: moderations returns: 'A [moderation](/docs/api-reference/moderations/object) object.' examples: - request: - curl: "curl https://api.openai.com/v1/moderations \\\n -H \"Content-Type: application/json\" \\\n -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n -d '{\n \"input\": \"I want to kill them.\"\n }'\n" - python: "from openai import OpenAI\nclient = OpenAI()\n\nmoderation = client.moderations.create(input=\"I want to kill them.\")\nprint(moderation)\n" - node.js: "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function main() {\n const moderation = await openai.moderations.create({ input: \"I want to kill them.\" });\n\n console.log(moderation);\n}\nmain();\n" - response: "{\n \"id\": \"modr-XXXXX\",\n \"model\": \"text-moderation-007\",\n \"results\": [\n {\n \"flagged\": true,\n \"categories\": {\n \"sexual\": false,\n \"hate\": false,\n \"harassment\": false,\n \"self-harm\": false,\n \"sexual/minors\": false,\n \"hate/threatening\": false,\n \"violence/graphic\": false,\n \"self-harm/intent\": false,\n \"self-harm/instructions\": false,\n \"harassment/threatening\": true,\n \"violence\": true,\n },\n \"category_scores\": {\n \"sexual\": 1.2282071e-06,\n \"hate\": 0.010696256,\n \"harassment\": 0.29842457,\n \"self-harm\": 1.5236925e-08,\n \"sexual/minors\": 5.7246268e-08,\n \"hate/threatening\": 0.0060676364,\n \"violence/graphic\": 4.435014e-06,\n \"self-harm/intent\": 8.098441e-10,\n \"self-harm/instructions\": 2.8498655e-11,\n \"harassment/threatening\": 0.63055265,\n \"violence\": 0.99011886,\n }\n }\n ]\n}\n" + - title: Single string + request: + curl: "curl https://api.openai.com/v1/moderations \\\n -H \"Content-Type: application/json\" \\\n -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n -d '{\n \"input\": \"I want to kill them.\"\n }'\n" + python: "from openai import OpenAI\nclient = OpenAI()\n\nmoderation = client.moderations.create(input=\"I want to kill them.\")\nprint(moderation)\n" + node.js: "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function main() {\n const moderation = await openai.moderations.create({ input: \"I want to kill them.\" });\n\n console.log(moderation);\n}\nmain();\n" + response: "{\n \"id\": \"modr-AB8CjOTu2jiq12hp1AQPfeqFWaORR\",\n \"model\": \"text-moderation-007\",\n \"results\": [\n {\n \"flagged\": true,\n \"categories\": {\n \"sexual\": false,\n \"hate\": false,\n \"harassment\": true,\n \"self-harm\": false,\n \"sexual/minors\": false,\n \"hate/threatening\": false,\n \"violence/graphic\": false,\n \"self-harm/intent\": false,\n \"self-harm/instructions\": false,\n \"harassment/threatening\": true,\n \"violence\": true\n },\n \"category_scores\": {\n \"sexual\": 0.000011726012417057063,\n \"hate\": 0.22706663608551025,\n \"harassment\": 0.5215635299682617,\n \"self-harm\": 2.227119921371923e-6,\n \"sexual/minors\": 7.107352217872176e-8,\n \"hate/threatening\": 0.023547329008579254,\n \"violence/graphic\": 0.00003391829886822961,\n \"self-harm/intent\": 1.646940972932498e-6,\n \"self-harm/instructions\": 1.1198755256458526e-9,\n \"harassment/threatening\": 0.5694745779037476,\n \"violence\": 0.9971134662628174\n }\n }\n ]\n}\n" + - title: Image and text + request: + curl: "curl https://api.openai.com/v1/moderations \\\n -X POST \\\n -H \"Content-Type: application/json\" \\\n -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n -d '{\n \"model\": \"omni-moderation-latest\",\n \"input\": [\n { \"type\": \"text\", \"text\": \"...text to classify goes here...\" },\n {\n \"type\": \"image_url\",\n \"image_url\": {\n \"url\": \"https://example.com/image.png\"\n }\n }\n ]\n }'\n" + python: "from openai import OpenAI\nclient = OpenAI()\n\nresponse = client.moderations.create(\n model=\"omni-moderation-latest\",\n input=[\n {\"type\": \"text\", \"text\": \"...text to classify goes here...\"},\n {\n \"type\": \"image_url\",\n \"image_url\": {\n \"url\": \"https://example.com/image.png\",\n # can also use base64 encoded image URLs\n # \"url\": \"data:image/jpeg;base64,abcdefg...\"\n }\n },\n ],\n)\n\nprint(response)\n" + node.js: "import OpenAI from \"openai\";\nconst openai = new OpenAI();\n\nconst moderation = await openai.moderations.create({\n model: \"omni-moderation-latest\",\n input: [\n { type: \"text\", text: \"...text to classify goes here...\" },\n {\n type: \"image_url\",\n image_url: {\n url: \"https://example.com/image.png\"\n // can also use base64 encoded image URLs\n // url: \"data:image/jpeg;base64,abcdefg...\"\n }\n }\n ],\n});\n\nconsole.log(moderation);\n" + response: "{\n \"id\": \"modr-0d9740456c391e43c445bf0f010940c7\",\n \"model\": \"omni-moderation-latest\",\n \"results\": [\n {\n \"flagged\": true,\n \"categories\": {\n \"harassment\": true,\n \"harassment/threatening\": true,\n \"sexual\": false,\n \"hate\": false,\n \"hate/threatening\": false,\n \"illicit\": false,\n \"illicit/violent\": false,\n \"self-harm/intent\": false,\n \"self-harm/instructions\": false,\n \"self-harm\": false,\n \"sexual/minors\": false,\n \"violence\": true,\n \"violence/graphic\": true\n },\n \"category_scores\": {\n \"harassment\": 0.8189693396524255,\n \"harassment/threatening\": 0.804985420696006,\n \"sexual\": 1.573112165348997e-6,\n \"hate\": 0.007562942636942845,\n \"hate/threatening\": 0.004208854591835476,\n \"illicit\": 0.030535955153511665,\n \"illicit/violent\": 0.008925306722380033,\n \"self-harm/intent\": 0.00023023930975076432,\n \"self-harm/instructions\": 0.0002293869201073356,\n \"self-harm\": 0.012598046106750154,\n \"sexual/minors\": 2.212566909570261e-8,\n \"violence\": 0.9999992735124786,\n \"violence/graphic\": 0.843064871157054\n },\n \"category_applied_input_types\": {\n \"harassment\": [\n \"text\"\n ],\n \"harassment/threatening\": [\n \"text\"\n ],\n \"sexual\": [\n \"text\",\n \"image\"\n ],\n \"hate\": [\n \"text\"\n ],\n \"hate/threatening\": [\n \"text\"\n ],\n \"illicit\": [\n \"text\"\n ],\n \"illicit/violent\": [\n \"text\"\n ],\n \"self-harm/intent\": [\n \"text\",\n \"image\"\n ],\n \"self-harm/instructions\": [\n \"text\",\n \"image\"\n ],\n \"self-harm\": [\n \"text\",\n \"image\"\n ],\n \"sexual/minors\": [\n \"text\"\n ],\n \"violence\": [\n \"text\",\n \"image\"\n ],\n \"violence/graphic\": [\n \"text\",\n \"image\"\n ]\n }\n }\n ]\n}\n" /assistants: get: tags: @@ -4662,7 +4669,7 @@ components: x-oaiMeta: name: The chat completion object group: chat - example: "{\n \"id\": \"chatcmpl-123\",\n \"object\": \"chat.completion\",\n \"created\": 1677652288,\n \"model\": \"gpt-4o-mini\",\n \"system_fingerprint\": \"fp_44709d6fcb\",\n \"choices\": [{\n \"index\": 0,\n \"message\": {\n \"role\": \"assistant\",\n \"content\": \"\\n\\nHello there, how may I assist you today?\",\n },\n \"logprobs\": null,\n \"finish_reason\": \"stop\"\n }],\n \"usage\": {\n \"prompt_tokens\": 9,\n \"completion_tokens\": 12,\n \"total_tokens\": 21\n }\n}\n" + example: "{\n \"id\": \"chatcmpl-123\",\n \"object\": \"chat.completion\",\n \"created\": 1677652288,\n \"model\": \"gpt-4o-mini\",\n \"system_fingerprint\": \"fp_44709d6fcb\",\n \"choices\": [{\n \"index\": 0,\n \"message\": {\n \"role\": \"assistant\",\n \"content\": \"\\n\\nHello there, how may I assist you today?\",\n },\n \"logprobs\": null,\n \"finish_reason\": \"stop\"\n }],\n \"usage\": {\n \"prompt_tokens\": 9,\n \"completion_tokens\": 12,\n \"total_tokens\": 21,\n \"completion_tokens_details\": {\n \"reasoning_tokens\": 0\n }\n }\n}\n" CreateChatCompletionFunctionResponse: required: - choices @@ -4719,7 +4726,7 @@ components: x-oaiMeta: name: The chat completion object group: chat - example: "{\n \"id\": \"chatcmpl-abc123\",\n \"object\": \"chat.completion\",\n \"created\": 1699896916,\n \"model\": \"gpt-4o-mini\",\n \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\": \"assistant\",\n \"content\": null,\n \"tool_calls\": [\n {\n \"id\": \"call_abc123\",\n \"type\": \"function\",\n \"function\": {\n \"name\": \"get_current_weather\",\n \"arguments\": \"{\\n\\\"location\\\": \\\"Boston, MA\\\"\\n}\"\n }\n }\n ]\n },\n \"logprobs\": null,\n \"finish_reason\": \"tool_calls\"\n }\n ],\n \"usage\": {\n \"prompt_tokens\": 82,\n \"completion_tokens\": 17,\n \"total_tokens\": 99\n }\n}\n" + example: "{\n \"id\": \"chatcmpl-abc123\",\n \"object\": \"chat.completion\",\n \"created\": 1699896916,\n \"model\": \"gpt-4o-mini\",\n \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\": \"assistant\",\n \"content\": null,\n \"tool_calls\": [\n {\n \"id\": \"call_abc123\",\n \"type\": \"function\",\n \"function\": {\n \"name\": \"get_current_weather\",\n \"arguments\": \"{\\n\\\"location\\\": \\\"Boston, MA\\\"\\n}\"\n }\n }\n ]\n },\n \"logprobs\": null,\n \"finish_reason\": \"tool_calls\"\n }\n ],\n \"usage\": {\n \"prompt_tokens\": 82,\n \"completion_tokens\": 17,\n \"total_tokens\": 99,\n \"completion_tokens_details\": {\n \"reasoning_tokens\": 0\n }\n }\n}\n" ChatCompletionTokenLogprob: required: - token @@ -4886,7 +4893,7 @@ components: x-oaiMeta: name: The chat completion chunk object group: chat - example: "{\n \"id\": \"chatcmpl-123\",\n \"object\": \"chat.completion\",\n \"created\": 1677652288,\n \"model\": \"gpt-4o-mini\",\n \"system_fingerprint\": \"fp_44709d6fcb\",\n \"choices\": [{\n \"index\": 0,\n \"message\": {\n \"role\": \"assistant\",\n \"content\": \"\\n\\nThis image shows a wooden boardwalk extending through a lush green marshland.\",\n },\n \"logprobs\": null,\n \"finish_reason\": \"stop\"\n }],\n \"usage\": {\n \"prompt_tokens\": 9,\n \"completion_tokens\": 12,\n \"total_tokens\": 21\n }\n}\n" + example: "{\n \"id\": \"chatcmpl-123\",\n \"object\": \"chat.completion\",\n \"created\": 1677652288,\n \"model\": \"gpt-4o-mini\",\n \"system_fingerprint\": \"fp_44709d6fcb\",\n \"choices\": [{\n \"index\": 0,\n \"message\": {\n \"role\": \"assistant\",\n \"content\": \"\\n\\nThis image shows a wooden boardwalk extending through a lush green marshland.\",\n },\n \"logprobs\": null,\n \"finish_reason\": \"stop\"\n }],\n \"usage\": {\n \"prompt_tokens\": 9,\n \"completion_tokens\": 12,\n \"total_tokens\": 21,\n \"completion_tokens_details\": {\n \"reasoning_tokens\": 0\n }\n }\n}\n" CreateImageRequest: required: - prompt @@ -5104,6 +5111,7 @@ components: input: oneOf: - type: string + description: A string of text to classify for moderation. default: '' example: I want to kill them. - type: array @@ -5111,17 +5119,63 @@ components: type: string default: '' example: I want to kill them. - description: The input text to classify + description: An array of strings to classify for moderation. + - type: array + items: + oneOf: + - required: + - type + - image_url + type: object + properties: + type: + enum: + - image_url + type: string + description: Always `image_url`. + image_url: + required: + - url + type: object + properties: + url: + type: string + description: Either a URL of the image or the base64 encoded image data. + format: uri + example: https://example.com/image.jpg + description: Contains either an image URL or a data URL for a base64 encoded image. + description: An object describing an image to classify. + - required: + - type + - text + type: object + properties: + type: + enum: + - text + type: string + description: Always `text`. + text: + type: string + description: A string of text to classify. + example: I want to kill them + description: An object describing text to classify. + x-oaiExpandable: true + description: An array of multi-modal inputs to the moderation model. + description: "Input (or inputs) to classify. Can be a single string, an array of strings, or\nan array of multi-modal input objects similar to other models.\n" + x-oaiExpandable: true model: anyOf: - type: string - enum: + - omni-moderation-latest + - omni-moderation-2024-09-26 - text-moderation-latest - text-moderation-stable type: string - description: "Two content moderations models are available: `text-moderation-stable` and `text-moderation-latest`.\n\nThe default is `text-moderation-latest` which will be automatically upgraded over time. This ensures you are always using our most accurate model. If you use `text-moderation-stable`, we will provide advanced notice before updating the model. Accuracy of `text-moderation-stable` may be slightly lower than for `text-moderation-latest`.\n" - default: text-moderation-latest - example: text-moderation-stable + description: "The content moderation model you would like to use. Learn more in\n[the moderation guide](/docs/guides/moderation), and learn about\navailable models [here](/docs/models/moderation).\n" + default: omni-moderation-latest + example: omni-moderation-2024-09-26 x-oaiTypeLabel: string CreateModerationResponse: required: @@ -5143,6 +5197,7 @@ components: - flagged - categories - category_scores + - category_applied_input_types type: object properties: flagged: @@ -5154,6 +5209,8 @@ components: - hate/threatening - harassment - harassment/threatening + - illicit + - illicit/violent - self-harm - self-harm/intent - self-harm/instructions @@ -5175,6 +5232,12 @@ components: harassment/threatening: type: boolean description: Harassment content that also includes violence or serious harm towards any target. + illicit: + type: boolean + description: 'Content that includes instructions or advice that facilitate the planning or execution of wrongdoing, or that gives advice or instruction on how to commit illicit acts. For example, "how to shoplift" would fit this category.' + illicit/violent: + type: boolean + description: 'Content that includes instructions or advice that facilitate the planning or execution of wrongdoing that also includes violence, or that gives advice or instruction on the procurement of any weapon.' self-harm: type: boolean description: 'Content that promotes, encourages, or depicts acts of self-harm, such as suicide, cutting, and eating disorders.' @@ -5203,6 +5266,8 @@ components: - hate/threatening - harassment - harassment/threatening + - illicit + - illicit/violent - self-harm - self-harm/intent - self-harm/instructions @@ -5224,6 +5289,12 @@ components: harassment/threatening: type: number description: The score for the category 'harassment/threatening'. + illicit: + type: number + description: The score for the category 'illicit'. + illicit/violent: + type: number + description: The score for the category 'illicit/violent'. self-harm: type: number description: The score for the category 'self-harm'. @@ -5246,11 +5317,126 @@ components: type: number description: The score for the category 'violence/graphic'. description: A list of the categories along with their scores as predicted by model. + category_applied_input_types: + required: + - hate + - hate/threatening + - harassment + - harassment/threatening + - illicit + - illicit/violent + - self-harm + - self-harm/intent + - self-harm/instructions + - sexual + - sexual/minors + - violence + - violence/graphic + type: object + properties: + hate: + type: array + items: + enum: + - text + type: string + description: The applied input type(s) for the category 'hate'. + hate/threatening: + type: array + items: + enum: + - text + type: string + description: The applied input type(s) for the category 'hate/threatening'. + harassment: + type: array + items: + enum: + - text + type: string + description: The applied input type(s) for the category 'harassment'. + harassment/threatening: + type: array + items: + enum: + - text + type: string + description: The applied input type(s) for the category 'harassment/threatening'. + illicit: + type: array + items: + enum: + - text + type: string + description: The applied input type(s) for the category 'illicit'. + illicit/violent: + type: array + items: + enum: + - text + type: string + description: The applied input type(s) for the category 'illicit/violent'. + self-harm: + type: array + items: + enum: + - text + - image + type: string + description: The applied input type(s) for the category 'self-harm'. + self-harm/intent: + type: array + items: + enum: + - text + - image + type: string + description: The applied input type(s) for the category 'self-harm/intent'. + self-harm/instructions: + type: array + items: + enum: + - text + - image + type: string + description: The applied input type(s) for the category 'self-harm/instructions'. + sexual: + type: array + items: + enum: + - text + - image + type: string + description: The applied input type(s) for the category 'sexual'. + sexual/minors: + type: array + items: + enum: + - text + type: string + description: The applied input type(s) for the category 'sexual/minors'. + violence: + type: array + items: + enum: + - text + - image + type: string + description: The applied input type(s) for the category 'violence'. + violence/graphic: + type: array + items: + enum: + - text + - image + type: string + description: The applied input type(s) for the category 'violence/graphic'. + description: A list of the categories along with the input type(s) that the score applies to. description: A list of moderation objects. description: Represents if a given text input is potentially harmful. x-oaiMeta: name: The moderation object - example: "{\n \"id\": \"modr-XXXXX\",\n \"model\": \"text-moderation-007\",\n \"results\": [\n {\n \"flagged\": true,\n \"categories\": {\n \"sexual\": false,\n \"hate\": false,\n \"harassment\": false,\n \"self-harm\": false,\n \"sexual/minors\": false,\n \"hate/threatening\": false,\n \"violence/graphic\": false,\n \"self-harm/intent\": false,\n \"self-harm/instructions\": false,\n \"harassment/threatening\": true,\n \"violence\": true,\n },\n \"category_scores\": {\n \"sexual\": 1.2282071e-06,\n \"hate\": 0.010696256,\n \"harassment\": 0.29842457,\n \"self-harm\": 1.5236925e-08,\n \"sexual/minors\": 5.7246268e-08,\n \"hate/threatening\": 0.0060676364,\n \"violence/graphic\": 4.435014e-06,\n \"self-harm/intent\": 8.098441e-10,\n \"self-harm/instructions\": 2.8498655e-11,\n \"harassment/threatening\": 0.63055265,\n \"violence\": 0.99011886,\n }\n }\n ]\n}\n" + example: empty ListFilesResponse: required: - object @@ -10890,7 +11076,7 @@ tags: - name: Models description: List and describe the various models available in the API. - name: Moderations - description: 'Given a input text, outputs if the model classifies it as potentially harmful.' + description: 'Given text and/or image inputs, classifies if those inputs are potentially harmful.' - name: Audit Logs description: List user actions and configuration changes within this organization. x-oaiMeta: @@ -11095,7 +11281,7 @@ x-oaiMeta: path: object - id: moderations title: Moderations - description: "Given some input text, outputs if the model classifies it as potentially harmful across several categories.\n\nRelated guide: [Moderations](/docs/guides/moderation)\n" + description: "Given text and/or image inputs, classifies if those inputs are potentially harmful across several categories.\n\nRelated guide: [Moderations](/docs/guides/moderation)\n" navigationGroup: endpoints sections: - type: endpoint